Escape characters?

This commit is contained in:
Michael Stanclift 2020-05-24 20:29:32 -05:00
parent 7f38d43256
commit 8ed7bda376

View File

@ -86,7 +86,7 @@ function update_gs {
# Developer Build Update # Developer Build Update
function beta_gs { function beta_gs {
TASKTYPE='UPDATE' TASKTYPE='BETA'
logs_export # dumps log prior to execution because script stops after successful pull logs_export # dumps log prior to execution because script stops after successful pull
MESSAGE="Requires GitHub Installation" MESSAGE="Requires GitHub Installation"
@ -312,7 +312,7 @@ function show_version {
# Look for Changes # Look for Changes
function md5_compare { function md5_compare {
primaryMD5=$(ssh ${REMOTE_USER}@${REMOTE_HOST} 'md5sum ${PIHOLE_DIR}/${GRAVITY_FI}') primaryMD5=$(ssh ${REMOTE_USER}@${REMOTE_HOST} \'md5sum ${PIHOLE_DIR}/${GRAVITY_FI}\')
secondMD5=$(md5sum ${PIHOLE_DIR}/${GRAVITY_FI}) secondMD5=$(md5sum ${PIHOLE_DIR}/${GRAVITY_FI})
if [ "$primaryMD5" == "$secondMD5" ] if [ "$primaryMD5" == "$secondMD5" ]
@ -375,14 +375,14 @@ case $# in
;; ;;
update) update)
TASKTYPE='UPDATE' # TASKTYPE='UPDATE'
echo -e "[${GREEN}GOOD${NC}] Update Requested" echo -e "[${GREEN}GOOD${NC}] Update Requested"
update_gs update_gs
exit_nochange exit_nochange
;; ;;
beta) beta)
TASKTYPE='BETA' # TASKTYPE='BETA'
echo -e "[${GREEN}GOOD${NC}] Beta Update Requested" echo -e "[${GREEN}GOOD${NC}] Beta Update Requested"
beta_gs beta_gs
exit_nochange exit_nochange