From: Florian Zschocke Date: Thu, 9 Dec 2021 20:34:17 +0000 (+0100) Subject: run: Put variables in quotes in shell scripts X-Git-Tag: v1.9.2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=14e91e8a1ca3b4b4b0ea54f518805e6409f8705d;p=gitblit.git run: Put variables in quotes in shell scripts --- 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"