Last active
November 22, 2017 00:41
-
-
Save nobiki/bd6dd707a0f73c574ead4d33d78ec6d3 to your computer and use it in GitHub Desktop.
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/bash | |
if [ "upload" == $1 ];then | |
scp `dirname $0`/$2/$3 hostname:/path/to/workspace/$2/$3 | |
elif [ 'download' == $1 ];then | |
scp hostname:/path/to/workspace/$2/$3 `dirname $0`/$2/$3 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment