diff --git a/mint/linux_mint_custom_iso.sh b/mint/linux_mint_custom_iso.sh index d838516..9ed1187 100755 --- a/mint/linux_mint_custom_iso.sh +++ b/mint/linux_mint_custom_iso.sh @@ -1,21 +1,18 @@ #!/bin/bash #you need to download the latest Linux Mint ISO from the website first before running the script. -#adds a variable for correct naming of the created ISO. -UNATTENDED="unattended-$1" # => unattended-linuxmint-19.3-cinnamon-64bit.iso - -#catch if argument 1 is empty. Without the ISO as an argument this script won't work -if [[ -z $1 ]] - then echo "Usage: $0 [linuxmint-original.iso]" +#catch if argument 1 is empty. Without the ISO as an argument this script won't work. +if [[ -z $1 ]]; then + echo "Usage: $0 [linuxmint-original.iso]" exit - #catch if the file cannot be found or is misspelled. elif [[ ! -f $1 ]]; then echo "File not found: $1" >&2 exit 1 - fi +UNATTENDED="unattended-$1" # => unattended-linuxmint-19.3-cinnamon-64bit.iso + #creates a folders that is used during the process. mkdir iso