X-Git-Url: https://git.saurik.com/winterboard.git/blobdiff_plain/62b2dbad6360951766f085f50ce8d19c80756395..62ab6edbb3f23b74650ddb7e3ad054702f7eaa43:/Test.sh diff --git a/Test.sh b/Test.sh index e8e48d9..df14755 100755 --- a/Test.sh +++ b/Test.sh @@ -1,5 +1,17 @@ #!/bin/bash -rm -f WinterBoard.dylib set -e -rsync -SPaz 'saurik@carrier.saurik.com:menes/winterboard/WinterBoard{,.dylib}' . -#killall SpringBoard + +ip=$1 +app=$2 + +if [[ -z $ip ]]; then + exit 1; +fi + +make package +scp -p winterboard.deb root@"$ip": +ssh root@"$ip" dpkg -i winterboard.deb + +if [[ -n $app ]]; then + ssh root@"$ip" killall "$app" +fi