Created
November 6, 2015 13:47
-
-
Save haosdent/cd0a1f7b00e850250ead to your computer and use it in GitHub Desktop.
download_file.sh
This file contains hidden or 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
#!/usr/bin/env bash | |
FILE_PATH=$(readlink -e $1) | |
SSH_CONNECTIONS=(${SSH_CONNECTION}) | |
SERVER_HOST=${SSH_CONNECTIONS[2]} | |
SERVER_PORT=${SSH_CONNECTIONS[3]} | |
echo download_file ${SERVER_PORT} ${USER}@${SERVER_HOST}:${FILE_PATH} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo wget --no-check-certificate https://gist.githubusercontent.com/haosdent/cd0a1f7b00e850250ead/raw/80999218d82647447ed7e86fcb6ed6ef32188633/download_file.sh -O /usr/bin/download_file.sh
sudo chmod a+x /usr/bin/download_file.sh