switch checks

This commit is contained in:
6543 2018-05-22 01:30:35 +02:00
parent be32c02a81
commit 7d4c1015d5

View File

@ -15,17 +15,18 @@ function iso_extract() {
return 10
}

iso_extr_dir="$2"
[ -d "$iso_extr_dir" ] || {
echo "### ERROR ### iso_extract: aim directory not exist!"
return 12
}

iso_source="$1"
[ -f "$iso_source" ] || {
echo "### ERROR ### iso_extract: ISO \"$iso_source\" not exist!"
return 11
}

iso_extr_dir="$2"
[ -d "$iso_extr_dir" ] || {
echo "### ERROR ### iso_extract: aim directory not exist!"
return 12
}

#mace tmp mountpoint
tmpdir="`mktemp -d`"