summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorian Zschocke <f.zschocke+git@gmail.com>2021-12-09 21:34:17 +0100
committerFlorian Zschocke <f.zschocke+git@gmail.com>2021-12-09 21:34:17 +0100
commit14e91e8a1ca3b4b4b0ea54f518805e6409f8705d (patch)
treeb9c32e76c5229e3f637aab90dbb5a295948796c9 /src
parentb87114ea3315f37bddec8fe2f6d857bd393aacfb (diff)
downloadgitblit-14e91e8a1ca3b4b4b0ea54f518805e6409f8705d.tar.gz
gitblit-14e91e8a1ca3b4b4b0ea54f518805e6409f8705d.zip
run: Put variables in quotes in shell scripts
Diffstat (limited to 'src')
-rw-r--r--src/main/distrib/linux/add-indexed-branch.sh4
-rw-r--r--src/main/distrib/linux/migrate-tickets.sh2
-rw-r--r--src/main/distrib/linux/reindex-tickets.sh2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/main/distrib/linux/add-indexed-branch.sh b/src/main/distrib/linux/add-indexed-branch.sh
index 0d29e5d3..0285d1bb 100644
--- a/src/main/distrib/linux/add-indexed-branch.sh
+++ b/src/main/distrib/linux/add-indexed-branch.sh
@@ -16,6 +16,6 @@
# Set EXCLUSIONS for any repositories that you do not want to change
# --------------------------------------------------------------------------
FOLDER=data/git
-EXCLUSIONS=--skip test.git --skip group/test*
+EXCLUSIONS="--skip test.git --skip group/test*"
BRANCH=default
-java -cp gitblit.jar:"ext/*" com.gitblit.AddIndexedBranch --repositoriesFolder $FOLDER --branch $BRANCH $EXCLUSIONS
+java -cp gitblit.jar:"ext/*" com.gitblit.AddIndexedBranch --repositoriesFolder "$FOLDER" --branch "$BRANCH" "$EXCLUSIONS"
diff --git a/src/main/distrib/linux/migrate-tickets.sh b/src/main/distrib/linux/migrate-tickets.sh
index 4f360918..0e2829a8 100644
--- a/src/main/distrib/linux/migrate-tickets.sh
+++ b/src/main/distrib/linux/migrate-tickets.sh
@@ -17,5 +17,5 @@ if [ -z $1 ] || [ -z $2 ]; then
exit 1;
fi
-java -cp "gitblit.jar:ext/*" com.gitblit.MigrateTickets $1 --baseFolder $2
+java -cp "gitblit.jar:ext/*" com.gitblit.MigrateTickets "$1" --baseFolder "$2"
diff --git a/src/main/distrib/linux/reindex-tickets.sh b/src/main/distrib/linux/reindex-tickets.sh
index 42239ea1..ba808fa6 100644
--- a/src/main/distrib/linux/reindex-tickets.sh
+++ b/src/main/distrib/linux/reindex-tickets.sh
@@ -20,5 +20,5 @@ if [ -z $1 ] ; then
exit 1;
fi
-java -cp "gitblit.jar:ext/*" com.gitblit.ReindexTickets --baseFolder $1
+java -cp "gitblit.jar:ext/*" com.gitblit.ReindexTickets --baseFolder "$1"