Skip to content

Commit b2eef92

Browse files
authored
implement requested changes
1 parent a9b4ed7 commit b2eef92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipfs-websites/pin-websites.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ exec 3>"$pinset_file"
4242
# remove temp file after this script ends
4343
trap "rm -f $pinset_file" 0 2 3 15
4444

45-
ipfs-cluster-ctl "$@" pin ls >&3
45+
ipfs-cluster-ctl $@ pin ls >&3
4646

4747
for s in $websites; do
4848
oldcids=$(grep "| $s |" $pinset_file | cut -d ' ' -f 1)
@@ -55,12 +55,12 @@ for s in $websites; do
5555
echo "already pinned in latest version: $s"
5656
else
5757
echo "pinning: $s"
58-
ipfs-cluster-ctl "$@" pin add --no-status --name "$s" "$newcid"
58+
ipfs-cluster-ctl $@ pin add --no-status --name "$s" "$newcid"
5959
pinned=yes
6060
fi
6161
if [[ -n "$oldcid" && ("$newcid" != "$oldcid") ]]; then
6262
echo "unpinning old version: $oldcid"
63-
ipfs-cluster-ctl "$@" pin rm --no-status "$oldcid"
63+
ipfs-cluster-ctl $@ pin rm --no-status "$oldcid"
6464
fi
6565
done
6666
done

0 commit comments

Comments
 (0)