forked from kiss-community/kiss
kiss: reduce indentation
This commit is contained in:
parent
ddbefa66b7
commit
fc05246b3b
14
kiss
14
kiss
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user