Radish alpha
r
rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt
Git libraries for Radicle
Radicle
Git
surf: make `update-script-platinum` script work on macOS
Sebastian Martinez committed 2 years ago
commit 48c508064c4465e91ec87203f844b01af8e14d5f
parent b8def65
1 file changed +3 -3
modified radicle-surf/scripts/update-git-platinum.sh
@@ -2,7 +2,7 @@
set -euo pipefail

# Verify that the script is run from project root.
-
BASE=$(basename $(pwd))
+
BASE=$(basename "$(pwd)")

if [ "${BASE}" != "radicle-surf" ]
then
@@ -30,9 +30,9 @@ git -C "$PLATINUM_REPO" checkout dev
input="./data/mock-branches.txt"
while IFS= read -r line
do
-
    IFS=, read -a pair <<< $line
+
    IFS=, read -ra pair <<< "$line"
    echo "Creating branch ${pair[0]}"
-
    git -C "$PLATINUM_REPO" update-ref ${pair[0]} ${pair[1]}
+
    git -C "$PLATINUM_REPO" update-ref "${pair[0]}" "${pair[1]}"
done < "$input"

# Update the archive.