From 8093c6ac9fea36a10b0ce32fb207e1eb5b1466d6 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Mon, 30 Sep 2024 10:23:17 -0400 Subject: [PATCH] Configurable --- home/bin/sc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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)