Standardize indentation
This commit is contained in:
parent
ddf9bc6abc
commit
75ff3a3009
2 changed files with 16 additions and 16 deletions
10
src/check.sh
10
src/check.sh
|
@ -1,9 +1,9 @@
|
||||||
check() {
|
check() {
|
||||||
base_files="$(scan_directory "$CONFIG_ROOT/base")"
|
base_files="$(scan_directory "$CONFIG_ROOT/base")"
|
||||||
bkp_files="$(scan_directory "$CONFIG_ROOT/bkp")"
|
bkp_files="$(scan_directory "$CONFIG_ROOT/bkp")"
|
||||||
|
|
||||||
log debug "collected base files:\n$base_files"
|
log debug "collected base files:\n$base_files"
|
||||||
log debug "collected bkp files:\n$bkp_files"
|
log debug "collected bkp files:\n$bkp_files"
|
||||||
|
|
||||||
scan_packages
|
scan_packages
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,15 +8,15 @@ validate_input_packages() {
|
||||||
|
|
||||||
echo "$package_list" | xargs | sed 's/ /\n/g' | while read -r package; do
|
echo "$package_list" | xargs | sed 's/ /\n/g' | while read -r package; do
|
||||||
|
|
||||||
if echo "$package" | grep -q "$invalid_characters_pattern"; then
|
if echo "$package" | grep -q "$invalid_characters_pattern"; then
|
||||||
log user "Invalid package: $package (contains invalid characters)"
|
log user "Invalid package: $package (contains invalid characters)"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if grep -qw "$package" "$PACKAGE_CACHE"; then
|
if grep -qw "$package" "$PACKAGE_CACHE"; then
|
||||||
log debug "Found in package cache: $package"
|
log debug "Found in package cache: $package"
|
||||||
else
|
else
|
||||||
log user "Invalid package: $package (not found in package cache)"
|
log user "Invalid package: $package (not found in package cache)"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue