removed upload things from build script"
This commit is contained in:
parent
c54517e9cc
commit
71748a8b48
12
make
12
make
@ -1,13 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
rootDir='./tmp/'
|
rootDir='./site/'
|
||||||
targetDir='post/'
|
targetDir='post/'
|
||||||
if [ -f .creds ]
|
|
||||||
then
|
|
||||||
source .creds
|
|
||||||
url="https://$user:$pass@neocities.org/api/upload"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# auto tools should be able to fix this
|
|
||||||
post() {
|
post() {
|
||||||
echo Building: $1
|
echo Building: $1
|
||||||
tmp=".swap"
|
tmp=".swap"
|
||||||
@ -62,7 +56,7 @@ then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while getopts ":aslrhup:" opt;do
|
while getopts ":aslrhp:" opt;do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
a)
|
a)
|
||||||
build_all;;
|
build_all;;
|
||||||
@ -85,8 +79,6 @@ while getopts ":aslrhup:" opt;do
|
|||||||
post $file
|
post $file
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
u)
|
|
||||||
upload;; # this needs a proper fix according to api
|
|
||||||
h)
|
h)
|
||||||
_help;;
|
_help;;
|
||||||
l)
|
l)
|
||||||
|
Loading…
Reference in New Issue
Block a user