mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-18 18:40:30 +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
|
#!/bin/bash
|
||||||
|
# vi:sw=2
|
||||||
|
|
||||||
if ! [[ -f upload.pwd ]]; then
|
if ! [[ -f upload.pwd ]]; then
|
||||||
echo "You need a file named upload.pwd with the following format:"
|
echo "You need a file named upload.pwd with the following format:"
|
||||||
|
@ -87,8 +88,11 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${#UPARGS[@]} -gt 0 ]]; then
|
if [[ ${#UPARGS[@]} -gt 0 ]]; then
|
||||||
|
if [[ ! ${NOUPLOAD} ]]; then
|
||||||
curl ${UPARGS[@]} "https://$N_USER:$N_PWD@neocities.org/api/upload" && touch upload.lasttime
|
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."
|
echo "No files need to be uploaded."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue