asdf
This commit is contained in:
@@ -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' "$*"
|
||||
|
||||
@@ -10,3 +10,5 @@ msg() {
|
||||
-H "Content-Type:application/json" \
|
||||
--data "{\"content\": $message}"
|
||||
}
|
||||
|
||||
msg "$@"
|
||||
@@ -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"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
chmod -x globals.sh
|
||||
git stash
|
||||
git pull
|
||||
|
||||
Reference in New Issue
Block a user