Configurable
This commit is contained in:
parent
9757cfbb97
commit
8093c6ac9f
10
home/bin/sc
10
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user