Fix non-etc overlay detection
This commit is contained in:
parent
7b019b2783
commit
4017d097e1
1 changed files with 2 additions and 2 deletions
4
arkdep
4
arkdep
|
@ -387,11 +387,11 @@ deploy () {
|
|||
# Add overlay if enabled
|
||||
if [[ $enable_overlay -eq 1 ]]; then
|
||||
printf "\e[1;34m-->\e[0m\e[1m Copying overlay to deployment\e[0m\n"
|
||||
overlay_files=$(ls $arkdep_dir/overlay/)
|
||||
declare -r overlay_files=$(ls $arkdep_dir/overlay/)
|
||||
|
||||
# Check if only /etc is present, if it is we do not have to unlock the root volume
|
||||
for file in ${overlay_files[*]}; do
|
||||
if [[ ! $file -eq etc ]]; then
|
||||
if [[ ! $file == 'etc' ]]; then
|
||||
printf "\e[1;33m<!>\e[0m\e[1m ${data[0]} Non /etc file or directory detected, root will be temporarily unlocked\e[0m\n"
|
||||
overlay_unlock_root=1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue