some further code-style improvements
This commit is contained in:
parent
b88f77de23
commit
5a363976ea
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue