瀏覽代碼

Added eval

Joachim M. Giæver 5 年之前
父節點
當前提交
09afa850c0
共有 1 個文件被更改,包括 1 次插入2 次删除
  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