about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPadeso <padeso@duck.com>2024-12-29 17:35:02 +0000
committerPadeso <padeso@duck.com>2024-12-29 17:35:02 +0000
commita4d4403de273d3e1ee3456c878cee1ba99b090d9 (patch)
treef737aa780fb51dd27947bddcf7f651bf871ff676
parent33bdbd42b5ba85144a3e702e2bf74bdb5e70c9c1 (diff)
downloadnon-empty-sites-a4d4403de273d3e1ee3456c878cee1ba99b090d9.tar.gz
Fix error in site-scan
-rwxr-xr-xsite-scan2
1 files changed, 1 insertions, 1 deletions
diff --git a/site-scan b/site-scan
index b4b8657..fd89e7b 100755
--- a/site-scan
+++ b/site-scan
@@ -11,7 +11,7 @@ function roll_files {
             NEXT=$((INDEX+1))
             mv "$BASE.$INDEX" "$BASE.$NEXT"
         fi
-        INDEX=$((COUNT-1))
+        INDEX=$((INDEX-1))
     done
     if [ -f $BASE ]; then
         mv "$BASE" "$BASE.1"