23 lines
382 B
Bash
23 lines
382 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Build it all
|
||
|
#./make -a
|
||
|
|
||
|
if [ -f .env ];then
|
||
|
. ./.env
|
||
|
fi
|
||
|
|
||
|
rootDir='./site/'
|
||
|
url="https://$USER:$PASS@neocities.org/api"
|
||
|
|
||
|
cd $rootDir
|
||
|
# First the root pages
|
||
|
for lpage in `find . -type f`;do
|
||
|
remote=`echo $lpage | cut -c2-64`
|
||
|
echo curl -F $remote'=@'$lpage $url/upload
|
||
|
curl -F "$remote"'=@'"$lpage" "$url"/upload
|
||
|
done
|
||
|
|
||
|
#curl -F "/yes/test.html=@e.html" "$url/upload"
|
||
|
|