Cast ls in to list

This commit is contained in:
Dennis ten Hoove 2023-10-23 20:02:44 +00:00
parent 4017d097e1
commit 4f152857b5

2
arkdep
View file

@ -387,7 +387,7 @@ deploy () {
# Add overlay if enabled # Add overlay if enabled
if [[ $enable_overlay -eq 1 ]]; then if [[ $enable_overlay -eq 1 ]]; then
printf "\e[1;34m-->\e[0m\e[1m Copying overlay to deployment\e[0m\n" printf "\e[1;34m-->\e[0m\e[1m Copying overlay to deployment\e[0m\n"
declare -r 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 # Check if only /etc is present, if it is we do not have to unlock the root volume
for file in ${overlay_files[*]}; do for file in ${overlay_files[*]}; do