summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/mageia-reset-and-import.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/mageia-reset-and-import.sh b/scripts/mageia-reset-and-import.sh
index 50d2a91..56f1b97 100755
--- a/scripts/mageia-reset-and-import.sh
+++ b/scripts/mageia-reset-and-import.sh
@@ -121,7 +121,7 @@ else
# comparison point.
reftreesha1=$(git rev-parse "$ref":)
parentref=$ref
- while [ $(git rev-parse --quiet --verify "$parentref"^: ) = "$reftreesha1" ]; do
+ while [ "$(git rev-parse --quiet --verify "$parentref"^: )" = "$reftreesha1" ]; do
parentref="$parentref"^
done
@@ -361,7 +361,7 @@ for tag in $tags; do
# Find the oldest ancestor for which the tree is the same
parentref="$ref"
- while [ $(git rev-parse --quiet --verify "$parentref"^:) = "$reftreesha1" ]; do
+ while [ "$(git rev-parse --quiet --verify "$parentref"^:)" = "$reftreesha1" ]; do
parentref="$parentref"^
done
parent=$(git rev-parse "$parentref")
@@ -405,7 +405,7 @@ for branch in $branches; do
# Find the oldest ancestor for which the tree is the same
parentref="$ref"
- while [ $(git rev-parse --quiet --verify "$parentref"^:) = "$reftreesha1" ]; do
+ while [ "$(git rev-parse --quiet --verify "$parentref"^:)" = "$reftreesha1" ]; do
parentref="$parentref"^
done
parent=$(git rev-parse "$parentref")