forked from electricdusk/rushlink
Make rushlink script more portable.
It didn't work on mac (and bsd, probably). Now it does.
This commit is contained in:
parent
01adfa8f2f
commit
28ddaee9d9
@ -13,7 +13,7 @@ link() {
|
||||
*)
|
||||
curl -sS -Ffile=@- "$LINK" < "$1"
|
||||
;;
|
||||
esac | sed -n '1p;/deleteToken/{s@.*\(https://\)@\1@;p;q}' | (
|
||||
esac | awk 'NR == 1 { print } $NF ~ /deleteToken=/ { print $NF; exit }' | (
|
||||
IFS= read -r link
|
||||
IFS= read -r deletelink
|
||||
echo "$link"
|
||||
|
Loading…
Reference in New Issue
Block a user