Explorar el Código

added check to see if updateonstart var exists

Daniel Gibbs hace 9 años
padre
commit
ec4e190720
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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}"