Просмотр исходного кода

corrected if and renamed function

Daniel Gibbs 10 лет назад
Родитель
Сommit
bceae77c24
2 измененных файлов с 8 добавлено и 8 удалено
  1. 1 1
      functions/command_update_functions.sh
  2. 7 7
      functions/core_getopt.sh

+ 1 - 1
functions/update_functions.sh → functions/command_update_functions.sh

@@ -15,7 +15,7 @@ echo -ne "\n"
 if [ -d "${rootdir}/functions/" ]; then
 	rm -rfv "${rootdir}/functions/"
 	exitcode=$?
-elif [ -z "${functionsdir}" ]; then
+elif [ -n "${functionsdir}" ]; then
 	rm -rfv "${functionsdir}/"*
 	exitcode=$?
 else

+ 7 - 7
functions/core_getopt.sh

@@ -20,7 +20,7 @@ case "$getopt" in
 		forceupdate=1;
 		update_check.sh;;
 	uf|update-functions)
-		update_functions.sh;;
+		command_update_functions.sh;;
 	v|validate)
 		command_validate.sh;;
 	m|monitor)
@@ -81,7 +81,7 @@ case "$getopt" in
 	u|update)
 		update_check.sh;;
 	uf|update-functions)
-		update_functions.sh;;
+		command_update_functions.sh;;
 	m|monitor)
 		command_monitor.sh;;
 	et|email-test)
@@ -133,7 +133,7 @@ case "$getopt" in
 	r|restart)
 		fn_restart;;
 	uf|update-functions)
-		update_functions.sh;;
+		command_update_functions.sh;;
 	m|monitor)
 		command_monitor.sh;;
 	et|email-test)
@@ -183,7 +183,7 @@ case "$getopt" in
 		forceupdate=1;
 		update_check.sh;;
 	uf|update-functions)
-		update_functions.sh;;
+		command_update_functions.sh;;
 	v|validate)
 		command_validate.sh;;
 	m|monitor)
@@ -242,7 +242,7 @@ case "$getopt" in
 	r|restart)
 		fn_restart;;
 	uf|update-functions)
-		update_functions.sh;;
+		command_update_functions.sh;;
 	m|monitor)
 		command_monitor.sh;;
 	et|email-test)
@@ -305,7 +305,7 @@ case "$getopt" in
 		forceupdate=1;
 		update_check.sh;;
 	uf|update-functions)
-		update_functions.sh;;
+		command_update_functions.sh;;
 	v|validate)
 		command_validate.sh;;
 	m|monitor)
@@ -368,7 +368,7 @@ case "$getopt" in
 	r|restart)
 		fn_restart;;
 	uf|update-functions)
-		update_functions.sh;;
+		command_update_functions.sh;;
 	m|monitor)
 		command_monitor.sh;;
 	et|email-test)