add project check
This commit is contained in:
parent
8b782fa5e1
commit
cdf2cc900e
@ -25,6 +25,13 @@ function check_config() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#Project
|
||||||
|
[ -f "<LIBDIR>/proj/$distro" ] || {
|
||||||
|
echo "No Project \"$distrp\" is not supported" | tee -a "$log_file"
|
||||||
|
return 3
|
||||||
|
}
|
||||||
|
|
||||||
#check live-system files
|
#check live-system files
|
||||||
if [ -f "$iso_source" ]; then
|
if [ -f "$iso_source" ]; then
|
||||||
if [ -n "$iso_destination" ] && [ -d "${iso_destination%/*}" ]; then
|
if [ -n "$iso_destination" ] && [ -d "${iso_destination%/*}" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user