diff --git a/home/bin/sc b/home/bin/sc index 0939987..e374965 100755 --- a/home/bin/sc +++ b/home/bin/sc @@ -7,15 +7,21 @@ ### CHANGE THESE FUNCTIONS: +# Host is the ssh host +HOST=tyrel.dev +# Site is the domain (can differ from host) +SITE=tyrel.bike + + upload() { # Given a filepath and a target name, upload the screenshot chmod +r "$1" - scp "$1" "tyrel.dev:/www/tyrel.bike/s/$2" + scp "$1" "$HOST:/www/$SITE/s/$2" } url() { # Given a target name, echo the expected URL of the uploaded screenshot - echo "https://tyrel.bike/s/$1" + echo "https://$SITE/s/$1" } ### (End)