This commit is contained in:
2023-11-26 09:27:29 -06:00
parent 250f1f7dba
commit 4d3b0104f4
5 changed files with 10 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ alias do_sync='rsync -avhu --progress --delete --partial --links'
################### GLOBAL FUNCTIONS #########################
msg() {
printf '\n[*] %s\n\n' "$*"
sh webhook.sh "$*"
}
errmsg() {
>&2 printf '\n[Error]: %s\n\n' "$*"

View File

@@ -10,3 +10,5 @@ msg() {
-H "Content-Type:application/json" \
--data "{\"content\": $message}"
}
msg "$@"

View File

@@ -18,7 +18,12 @@
# ===================================================
echo "Starting, attempting to load globals.sh"
GLOBALS_FILE="$PWD/lib/globals.sh"
# grab fresh copy of all helper scripts / libraries
if [ -d "$PWD/lib" ] ; then
cp -f "$PWD/lib"/* .
fi
GLOBALS_FILE="$PWD/globals.sh"
if [ -e "$GLOBALS_FILE" ] ; then
chmod +x "$GLOBALS_FILE"
. "$GLOBALS_FILE"

View File

@@ -1,4 +1,5 @@
#!/bin/sh
chmod -x globals.sh
git stash
git pull