Clean up some case statements, error when running live with no session.
This commit is contained in:
parent
3f4484ee7b
commit
1827c7be1a
@ -5,7 +5,7 @@
|
||||
# Some ideas and code reworked from other resources
|
||||
# AIF, Cnichi, Calamares, Arch Wiki.. Credit where credit is due
|
||||
|
||||
VER=2.0.76
|
||||
VER=2.0.77
|
||||
|
||||
# bulk default values {
|
||||
|
||||
@ -326,7 +326,11 @@ select_config()
|
||||
(( i++ )) # progress through to the next choice
|
||||
done
|
||||
|
||||
case $MYSHELL in bash) LOGINRC='.bash_profile' ;; zsh) LOGINRC='.zprofile' ;; mksh) LOGINRC='.profile' ;; esac
|
||||
case $MYSHELL in
|
||||
bash) LOGINRC='.bash_profile' ;;
|
||||
zsh) LOGINRC='.zprofile' ;;
|
||||
mksh) LOGINRC='.profile' ;;
|
||||
esac
|
||||
|
||||
return 0
|
||||
}
|
||||
@ -2126,6 +2130,10 @@ live()
|
||||
{
|
||||
local e=0
|
||||
|
||||
if (( $# == 0 )); then
|
||||
msg "No Session" "\nRunning live requires a session to use.\n\nExiting..\n" 2
|
||||
clear
|
||||
die 1
|
||||
if ! select_keymap; then
|
||||
clear
|
||||
die 0
|
||||
@ -2387,7 +2395,11 @@ elif ! grep -qwm 1 'lm' /proc/cpuinfo; then
|
||||
msg "Not x86_64 Architecture" "\nThis installer only supports x86_64 architectures.\n\nExiting..\n" 2
|
||||
die 1
|
||||
else
|
||||
case "$1" in -d|--debug) debug ;; -h|--help) usage "$0" ;; -l|--live) shift; live "$@" ;; esac
|
||||
case "$1" in
|
||||
-d|--debug) debug ;;
|
||||
-h|--help) usage "$0" ;;
|
||||
-l|--live) shift; live "$@" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# trap ^C to perform cleanup
|
||||
|
Reference in New Issue
Block a user