mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-10-31 00:40:51 +08:00
surf: make update-script-platinum script work on macOS
Without the `-r` flag the read command isn't able to extract the values correctly from the comma separated lines on macOS. Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user