Browse Source

Added eval

Joachim M. Giæver 5 years ago
parent
commit
09afa850c0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      bin/lxcbuild

+ 1 - 2
bin/lxcbuild

@@ -38,7 +38,6 @@ function container_snap_sh {
 
 function check_installed {
 	cprint "ok" "Checks if ${1} '${2}' is installed"
-
 	case ${1} in
 		dpkg) CHECK="$(dpkg-query -W --showformat='${Status}\n' ${2})";;
 		snap) CHECK="$(snap list ${2})";;
@@ -110,7 +109,7 @@ git pull
 
 if [ "${CURRF}" != "$(md5sum "${0}")" ]; then
 	cprint "File changes on last pull. Restarting..."
-	${SELF}
+	eval "${SELF}"
 	exit 1
 fi