Joachim M. Giæver il y a 5 ans
Parent
commit
09afa850c0
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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