]> source.dussan.org Git - gitblit.git/commitdiff
run: Put variables in quotes in shell scripts
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Thu, 9 Dec 2021 20:34:17 +0000 (21:34 +0100)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Thu, 9 Dec 2021 20:34:17 +0000 (21:34 +0100)
src/main/distrib/linux/add-indexed-branch.sh
src/main/distrib/linux/migrate-tickets.sh
src/main/distrib/linux/reindex-tickets.sh

index 0d29e5d34df4ade7cb594f08d23a09256fffb9c1..0285d1bb27821c2f5750087a0bef648c35ca8774 100644 (file)
@@ -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"
index 4f360918123aa79e48af1a08560925b31dca9516..0e2829a893053c973f16ed95d850b1c95265135f 100644 (file)
@@ -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"
 
index 42239ea1b3f5f4e741c59689570f91896fdd0229..ba808fa688065d88a2afa520418b8831ce2067e0 100644 (file)
@@ -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"