summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-23 14:35:06 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-23 14:35:06 (EST)
commit09dd0d5b8bc87d36be4b6637666fa81d41405697 (patch)
tree972f28281a423502e6bf3a3c6aad14d95a04db63 /src
parentac643e5ca41743fc4fa320308648b1a8d90804e5 (diff)
cmd/install*: Fix return values
Diffstat (limited to 'src')
-rw-r--r--src/cmd/install.sh2
-rw-r--r--src/cmd/installer-pc.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/install.sh b/src/cmd/install.sh
index d32f488..638cbd1 100644
--- a/src/cmd/install.sh
+++ b/src/cmd/install.sh
@@ -73,7 +73,7 @@ cmd_install_main()
"${cmd_install_opt_a-}" "${cmd_install_opt_p-}" \
"${root}" "${foreign}"; then
[ "x${dev}" != 'x' ] && block_umount "${root}"
- return 1
+ return 2
fi
[ "x${dev}" != 'x' ] && block_umount "${root}"
diff --git a/src/cmd/installer-pc.sh b/src/cmd/installer-pc.sh
index 595e9c9..848af10 100644
--- a/src/cmd/installer-pc.sh
+++ b/src/cmd/installer-pc.sh
@@ -79,7 +79,7 @@ cmd_installer_pc_main()
"${cmd_installer_pc_opt_p-}" \
"${root}" false; then
block_umount "${root}"
- return 1
+ return 2
fi
if [ -f "${root}/sbin/lilo" ]; then