asdf
This commit is contained in:
@@ -42,6 +42,7 @@ alias do_sync='rsync -avhu --progress --delete --partial --links'
|
|||||||
################### GLOBAL FUNCTIONS #########################
|
################### GLOBAL FUNCTIONS #########################
|
||||||
msg() {
|
msg() {
|
||||||
printf '\n[*] %s\n\n' "$*"
|
printf '\n[*] %s\n\n' "$*"
|
||||||
|
sh webhook.sh "$*"
|
||||||
}
|
}
|
||||||
errmsg() {
|
errmsg() {
|
||||||
>&2 printf '\n[Error]: %s\n\n' "$*"
|
>&2 printf '\n[Error]: %s\n\n' "$*"
|
||||||
|
|||||||
@@ -10,3 +10,5 @@ msg() {
|
|||||||
-H "Content-Type:application/json" \
|
-H "Content-Type:application/json" \
|
||||||
--data "{\"content\": $message}"
|
--data "{\"content\": $message}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msg "$@"
|
||||||
@@ -18,7 +18,12 @@
|
|||||||
# ===================================================
|
# ===================================================
|
||||||
echo "Starting, attempting to load globals.sh"
|
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
|
if [ -e "$GLOBALS_FILE" ] ; then
|
||||||
chmod +x "$GLOBALS_FILE"
|
chmod +x "$GLOBALS_FILE"
|
||||||
. "$GLOBALS_FILE"
|
. "$GLOBALS_FILE"
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
chmod -x globals.sh
|
chmod -x globals.sh
|
||||||
|
git stash
|
||||||
git pull
|
git pull
|
||||||
|
|||||||
Reference in New Issue
Block a user