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() {
|
pkg_install_files() {
|
||||||
while read -r file; do
|
# Copy files and create directories (preserving permissions).
|
||||||
_file=$KISS_ROOT$file
|
while { read -r file && _file=$KISS_ROOT$file; } do case $file in
|
||||||
|
|
||||||
# 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
|
|
||||||
/etc/*[!/])
|
/etc/*[!/])
|
||||||
# Handle /etc/ files in a special way (via a 3-way checksum) to
|
# Handle /etc/ files in a special way (via a 3-way checksum) to
|
||||||
# determine how these files should be installed. Do we overwrite
|
# determine how these files should be installed. Do we overwrite
|
||||||
@ -1203,8 +1196,7 @@ pkg_install_files() {
|
|||||||
# the old file or the new one.
|
# the old file or the new one.
|
||||||
mv -f "$__tmp" "$_file"
|
mv -f "$__tmp" "$_file"
|
||||||
fi
|
fi
|
||||||
esac || return 1
|
esac || return 1; done
|
||||||
done
|
|
||||||
|
|
||||||
unset _etc_cnt
|
unset _etc_cnt
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user