mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 16:44:39 +00:00
slight change to upload script
This commit is contained in:
parent
a1455246fb
commit
8056c8a41a
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
# vi:sw=2
|
||||
|
||||
if ! [[ -f upload.pwd ]]; then
|
||||
echo "You need a file named upload.pwd with the following format:"
|
||||
|
@ -87,8 +88,11 @@ else
|
|||
fi
|
||||
|
||||
if [[ ${#UPARGS[@]} -gt 0 ]]; then
|
||||
if [[ ! ${NOUPLOAD} ]]; then
|
||||
curl ${UPARGS[@]} "https://$N_USER:$N_PWD@neocities.org/api/upload" && touch upload.lasttime
|
||||
else
|
||||
else
|
||||
echo "Not uploading differing files."
|
||||
fi
|
||||
echo "No files need to be uploaded."
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue