Configurable

This commit is contained in:
Tyrel Souza 2024-09-30 10:23:17 -04:00
parent 9757cfbb97
commit 8093c6ac9f
Signed by: tyrel
GPG Key ID: A7042C28F86F5183

View File

@ -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)