Skip to content

Instantly share code, notes, and snippets.

@xerpi
Created February 15, 2023 02:53
Show Gist options
  • Save xerpi/08f8ea192aaa4811961d7ed69f89c614 to your computer and use it in GitHub Desktop.
Save xerpi/08f8ea192aaa4811961d7ed69f89c614 to your computer and use it in GitHub Desktop.
Switch utils
#!/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