mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 05:33:48 -05:00
new scriptTemplate
This commit is contained in:
@@ -89,11 +89,11 @@ function convertsecs() {
|
|||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
function pushover() {
|
function pushover() {
|
||||||
# Check for config file containing API Keys
|
# 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."
|
error "Please locate the pushover.cfg to send notifications to Pushover."
|
||||||
else
|
else
|
||||||
# Grab variables from the config file
|
# Grab variables from the config file
|
||||||
source "../etc/pushover.cfg"
|
source "${SOURCEPATH}/../etc/pushover.cfg"
|
||||||
|
|
||||||
# Send to Pushover
|
# Send to Pushover
|
||||||
PUSHOVERURL="https://api.pushover.net/1/messages.json"
|
PUSHOVERURL="https://api.pushover.net/1/messages.json"
|
||||||
|
|||||||
@@ -5,10 +5,13 @@
|
|||||||
# ##################################################
|
# ##################################################
|
||||||
# My Generic sync script.
|
# 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
|
# This is my bash script template. Start all scripts
|
||||||
# with this
|
# with this
|
||||||
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# HISTORY:
|
# HISTORY:
|
||||||
#
|
#
|
||||||
|
|||||||
5
tmp/.gitignore
vendored
Normal file
5
tmp/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
*
|
||||||
|
|
||||||
|
!.gitignore
|
||||||
|
!README.md
|
||||||
|
!*.sample
|
||||||
Reference in New Issue
Block a user