diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/build.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/build.sh b/src/cmd/build.sh index dbfd910..86d770c 100644 --- a/src/cmd/build.sh +++ b/src/cmd/build.sh @@ -73,8 +73,9 @@ cmd_build_main() profile_detect "${root}" if ! [ -d "${cmd_build_pkg_dir}" ]; then - error 2 "$(get_msg 'cmd_build_not_a_dir')" \ - "${cmd_build_pkg_dir}" + error "$(get_msg 'cmd_build_not_a_dir')" "${cmd_build_pkg_dir}" + [ "x${dev}" != 'x' ] && block_umount "${root}" + return 2 fi package_init "${cmd_build_pkg_dir}" package_set_substvars "${arch}" "${plat}" |