mirror of
https://github.com/Maschell/hid_to_vpad.git
synced 2024-11-05 23:25:05 +01:00
30 lines
1.0 KiB
Bash
30 lines
1.0 KiB
Bash
#! /bin/bash
|
|
#
|
|
|
|
cd $TRAVIS_BUILD_DIR/wiiu/apps/hidtovpad
|
|
|
|
for entry in "$TRAVIS_BUILD_DIR/wiiu/apps/hidtovpad"/*; do
|
|
echo "Uploading ${entry##*/}"
|
|
curl --ftp-create-dirs -T "${entry##*/}" -u $FTP_USER:$FTP_PASSWORD "$FTP_SERVER/${entry##*/}" > /dev/null 2>&1
|
|
done
|
|
|
|
IFS=$'\n' # make newlines the only separator
|
|
for f in `curl -u $FTP_USER:$FTP_PASSWORD $FTP_SERVER/sd/wiiu/controller/ --silent --use-ascii --list-only`; do
|
|
if [ "$f" != "." ] && [ "$f" != ".." ]; then
|
|
echo "Deleting sd/wiiu/controller/${f##*/}"
|
|
curl -v -u $FTP_USER:$FTP_PASSWORD ftp://$FTP_SERVER/ -Q "DELE sd/wiiu/controller/$f" --silent > /dev/null 2>&1
|
|
fi
|
|
done
|
|
|
|
cd $TRAVIS_BUILD_DIR/wiiu/controller
|
|
|
|
for entry in "$TRAVIS_BUILD_DIR/wiiu/controller"/*
|
|
do
|
|
echo "Uploading ${entry##*/}"
|
|
curl --ftp-create-dirs -T "${entry##*/}" -u $FTP_USER:$FTP_PASSWORD "$FTP_SERVER/sd/wiiu/controller/${entry##*/}" > /dev/null 2>&1
|
|
done
|
|
|
|
curl -v -u $FTP_USER:$FTP_PASSWORD ftp://$FTP_SERVER/ -Q "DELE .deletetoupdate" --silent > /dev/null 2>&1
|
|
|
|
curl $REFRESH
|