Merge pull request 'Make rushlink script more portable.' (#48) from mara/rushlink:master into master

This commit is contained in:
mrngm 2020-05-04 12:12:46 +02:00
commit bbe787da5d

View File

@ -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"