From ab5e49ffa1ba99283121a1f470b756f1cb646ebf Mon Sep 17 00:00:00 2001 From: Endel Dreyer Date: Wed, 3 Dec 2025 10:26:44 -0300 Subject: [PATCH] escape special characters on bash script --- deploy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy b/deploy index 992b761..bdad762 100755 --- a/deploy +++ b/deploy @@ -215,10 +215,10 @@ setup() { log cloning $repo if test "$fetch" != "fast"; then log "full fetch" - run "git clone --branch $branch $repo $path/source" + run "git clone --branch '$branch' '$repo' $path/source" else log "fast fetch" - run "git clone --depth=5 --branch $branch $repo $path/source" + run "git clone --depth=5 --branch '$branch' '$repo' $path/source" fi test $? -eq 0 || abort failed to clone run "ln -sfn $path/source $path/current" @@ -274,7 +274,7 @@ deploy() { # 5- Reset to ref log resetting HEAD to $ref - run "cd $path/source && git reset --hard $ref" + run "cd $path/source && git reset --hard '$ref'" test $? -eq 0 || abort git reset failed # 6- Link current