summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/mageia-import.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mageia-import.sh b/scripts/mageia-import.sh
index 26c4301..dc49f4b 100755
--- a/scripts/mageia-import.sh
+++ b/scripts/mageia-import.sh
@@ -73,7 +73,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")
@@ -117,7 +117,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")