From cc30c46f54a818f6c7a4cc19d5023385451e6f7b Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Thu, 8 Jan 2015 17:49:51 -0500 Subject: [PATCH] new scriptTemplate --- lib/sharedFunctions.sh | 4 ++-- scriptTemplate.sh | 5 ++++- tmp/.gitignore | 5 +++++ 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 tmp/.gitignore diff --git a/lib/sharedFunctions.sh b/lib/sharedFunctions.sh index 50b7580..e79ad9a 100755 --- a/lib/sharedFunctions.sh +++ b/lib/sharedFunctions.sh @@ -89,11 +89,11 @@ function convertsecs() { # ------------------------------------------------------ function pushover() { # Check for config file containing API Keys - if [ ! -f "../etc/pushover.cfg" ]; then + if [ ! -f "${SOURCEPATH}/../etc/pushover.cfg" ]; then error "Please locate the pushover.cfg to send notifications to Pushover." else # Grab variables from the config file - source "../etc/pushover.cfg" + source "${SOURCEPATH}/../etc/pushover.cfg" # Send to Pushover PUSHOVERURL="https://api.pushover.net/1/messages.json" diff --git a/scriptTemplate.sh b/scriptTemplate.sh index 216d1c5..f663442 100755 --- a/scriptTemplate.sh +++ b/scriptTemplate.sh @@ -5,10 +5,13 @@ # ################################################## # My Generic sync script. # -version="1.0.0" # Sets variable +version="1.0.0" # Sets vesion variable +scriptTemplateVersion="1.0.0" # Version of Template # # This is my bash script template. Start all scripts # with this +# + # # HISTORY: # diff --git a/tmp/.gitignore b/tmp/.gitignore new file mode 100644 index 0000000..f78983c --- /dev/null +++ b/tmp/.gitignore @@ -0,0 +1,5 @@ +* + +!.gitignore +!README.md +!*.sample