Browse Source

added check to see if updateonstart var exists

Daniel Gibbs 9 years ago
parent
commit
ec4e190720
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lgsm/functions/command_details.sh

+ 3 - 1
lgsm/functions/command_details.sh

@@ -218,7 +218,9 @@ fn_details_script(){
 		echo -e "${blue}Pushbullet alert:\t${default}${pushbulletalert}"
 
 		# Update on start
-		echo -e "${blue}Update on start:\t${default}${updateonstart}"
+		if [ -n "${updateonstart}" ]; then
+			echo -e "${blue}Update on start:\t${default}${updateonstart}"
+		fi
 
 		# Script location
 		echo -e "${blue}Location:\t${default}${rootdir}"