diff --git a/Linux_Toolbox.sh b/Linux_Toolbox.sh index 33d6390..7a856ab 100755 --- a/Linux_Toolbox.sh +++ b/Linux_Toolbox.sh @@ -166,16 +166,13 @@ fi if [[ $index -eq 14 ]] && [[ $i == *"TRUE"* ]]; then echo "Changing Hostname" echo "Please input new Hostname" - read hostname - hostnamectl set-hostname $hostname + read newhostname && hostnamectl set-hostname $newhostname fi if [[ $index -eq 15 ]] && [[ $i == *"TRUE"* ]]; then echo "Changing sudo timeout" echo "Paste the following into the editor:" konsole --hold -e echo "Defaults env_reset,timestamp_timeout=30" ; sudo visudo - # echo "Defaults env_reset,timestamp_timeout=30" - # sudo visudo fi