From d560a2b75df8f36c4b3546c2db77260ddc16fcce Mon Sep 17 00:00:00 2001
From: earthlng <earthlng@users.noreply.github.com>
Date: Tue, 27 Nov 2018 01:29:02 +0000
Subject: [PATCH] Update updater.sh

---
 updater.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/updater.sh b/updater.sh
index ba44f8e..038e59b 100755
--- a/updater.sh
+++ b/updater.sh
@@ -328,7 +328,7 @@ update_userjs () {
         echo "$diff" > "$diffname"
       else
         # strip leasttabs-1 number of TABS once per line
-        sed -E 's/\t{'$((leasttabs-1))'}//1' <<< "$diff" > "$diffname"
+        sed -E "s/$(printf '\t'){$((leasttabs-1))}//1" <<< "$diff" > "$diffname"
       fi
       echo -e "Status: ${GREEN}A diff file was created:${NC} ${PWD}/${diffname}"
     else