kiss: reduce indentation

This commit is contained in:
Dylan Araps 2021-07-17 17:49:43 +03:00
parent ddbefa66b7
commit fc05246b3b
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 42 additions and 50 deletions

14
kiss
View File

@ -1149,15 +1149,8 @@ file_rwx() {
}
pkg_install_files() {
while read -r file; do
_file=$KISS_ROOT$file
# Copy files and create directories (preserving permissions),
# skipping anything located in /etc/.
#
# The 'test' will run with '-e' for no-overwrite and '-z'
# for overwrite.
case $file in
# Copy files and create directories (preserving permissions).
while { read -r file && _file=$KISS_ROOT$file; } do case $file in
/etc/*[!/])
# Handle /etc/ files in a special way (via a 3-way checksum) to
# determine how these files should be installed. Do we overwrite
@ -1203,8 +1196,7 @@ pkg_install_files() {
# the old file or the new one.
mv -f "$__tmp" "$_file"
fi
esac || return 1
done
esac || return 1; done
unset _etc_cnt
}