Created
February 15, 2023 02:53
-
-
Save xerpi/08f8ea192aaa4811961d7ed69f89c614 to your computer and use it in GitHub Desktop.
Switch utils
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$#" -ne 2 ]; then | |
echo -e "Invalid arguments:\n\tswitchpush src dst" | |
exit 1 | |
fi | |
curl -u nxthemer:nxthemer -T "$1" ftp://$SWITCHIP:5000/"$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment