some further code-style improvements
This commit is contained in:
parent
b88f77de23
commit
5a363976ea
|
@ -1,21 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#you need to download the latest Linux Mint ISO from the website first before running the script.
|
#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.
|
#catch if argument 1 is empty. Without the ISO as an argument this script won't work.
|
||||||
UNATTENDED="unattended-$1" # => unattended-linuxmint-19.3-cinnamon-64bit.iso
|
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
|
exit
|
||||||
|
|
||||||
#catch if the file cannot be found or is misspelled.
|
#catch if the file cannot be found or is misspelled.
|
||||||
elif [[ ! -f $1 ]]; then
|
elif [[ ! -f $1 ]]; then
|
||||||
echo "File not found: $1" >&2
|
echo "File not found: $1" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
UNATTENDED="unattended-$1" # => unattended-linuxmint-19.3-cinnamon-64bit.iso
|
||||||
|
|
||||||
#creates a folders that is used during the process.
|
#creates a folders that is used during the process.
|
||||||
mkdir iso
|
mkdir iso
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue