diff options
Diffstat (limited to 'scrotpomf.bash')
-rwxr-xr-x | scrotpomf.bash | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scrotpomf.bash b/scrotpomf.bash index bb679fc..518998b 100755 --- a/scrotpomf.bash +++ b/scrotpomf.bash @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -o errexit + SCROTARGS=() while (( "$#" )); do SCROTARGS+=($1) @@ -11,10 +13,10 @@ FILE="$(scrot ${SCROTARGS[@]} -e 'echo -n $f')" # upload it and grab the URL printf "Uploading scrot\n" -JSON="$(curl -sf -F "files[]=@$FILE" http://pomf.se/upload.php)" +JSON="$(curl -sf -F "files[]=@$FILE" https://pomf.se/upload.php)" BASE="$(jshon -e files -e 0 -e url -u <<< $JSON)" -URL="http://a.pomf.se/$BASE" +URL="https://a.pomf.se/$BASE" # copy the URL to the clipboard if [[ "$(type -p xclip)" ]]; then |