Browse Source

Fixed argument list being incorrectly parsed for filenames with spaces in them. Must encase files with spaces in them with single quotes ''.

master
Teknikode 6 years ago
parent
commit
67f8d4777c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      upload.sh

+ 1
- 1
upload.sh View File

@@ -10,7 +10,7 @@ if [[ -z "${files}" ]]; then
else
printf 'Uploading file(s) now!'
n=1
for i in ${files}; do
for i in "$@"; do
printf "\nUploading file #${n} ... "
out=$(curl -sf -F file="@${i}" http://upload.teknik.io/lib/upload.php)
if [[ -n "${out}" ]]; then

Loading…
Cancel
Save