Standardize indentation

This commit is contained in:
Juno Takano 2024-07-12 07:24:00 -03:00
parent ddf9bc6abc
commit 75ff3a3009
2 changed files with 16 additions and 16 deletions

View file

@ -1,9 +1,9 @@
check() {
base_files="$(scan_directory "$CONFIG_ROOT/base")"
bkp_files="$(scan_directory "$CONFIG_ROOT/bkp")"
base_files="$(scan_directory "$CONFIG_ROOT/base")"
bkp_files="$(scan_directory "$CONFIG_ROOT/bkp")"
log debug "collected base files:\n$base_files"
log debug "collected bkp files:\n$bkp_files"
log debug "collected base files:\n$base_files"
log debug "collected bkp files:\n$bkp_files"
scan_packages
scan_packages
}

View file

@ -8,15 +8,15 @@ validate_input_packages() {
echo "$package_list" | xargs | sed 's/ /\n/g' | while read -r package; do
if echo "$package" | grep -q "$invalid_characters_pattern"; then
log user "Invalid package: $package (contains invalid characters)"
return 1
fi
if grep -qw "$package" "$PACKAGE_CACHE"; then
log debug "Found in package cache: $package"
else
log user "Invalid package: $package (not found in package cache)"
return 1
fi
done
if echo "$package" | grep -q "$invalid_characters_pattern"; then
log user "Invalid package: $package (contains invalid characters)"
return 1
fi
if grep -qw "$package" "$PACKAGE_CACHE"; then
log debug "Found in package cache: $package"
else
log user "Invalid package: $package (not found in package cache)"
return 1
fi
done
}