Skip to content

Commit

Permalink
Updated to use /bin/sh instead of /bin/bash directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
remanifest committed Oct 8, 2021
1 parent b805cfa commit cad0a05
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions uploader.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

#### Script for uploading to s-ul.eu using personal key.
#### Depends upon jq to parse the JSON response from s-ul.eu, and curl to execute the API call.
Expand All @@ -12,8 +12,7 @@
key=

# Make sure the API key was provided. If no key is provided, tell the user and exit.
if [ -z "$key" ];
then
if [ -z "$key" ]; then
{ echo -e >&2 "\nYou must input your API key from \033[4;32mhttps://s-ul.eu/account/configurations\033[0m into this script. Do that, then try again.\n"; exit 1; }
fi

Expand Down Expand Up @@ -62,4 +61,4 @@ do
fi
# Provide the delete URL by returning the string following the last slash in the $url variable.
echo -e "\t\033[1mDelete\033[0m: \033[4;31mhttp://s-ul.eu/delete.php?key=""$key""&file=""${url##*/}""\033[0m\n"
done
done

0 comments on commit cad0a05

Please sign in to comment.