From d7436d9dfcd4007dad081124cde04ac8e1d30906 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 17 Jan 2016 10:38:16 -0500 Subject: cmd/*: Check return value of profile_set() --- (limited to 'src/cmd/install.sh') diff --git a/src/cmd/install.sh b/src/cmd/install.sh index 097250a..c96f014 100644 --- a/src/cmd/install.sh +++ b/src/cmd/install.sh @@ -50,7 +50,9 @@ cmd_install_main() else profile='proteanos' fi - profile_set "${profile}" + if ! profile_set "${profile}"; then + return 2 + fi suite="$(profile_normalize_suite "${suite}")" if [ "x${cmd_install_opt_F+set}" = 'xset' ]; then -- cgit v0.9.1