mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 08:30:05 -07:00
kiss: move tests to if block
This commit is contained in:
parent
b5fba97ec8
commit
51a101f96e
9
kiss
9
kiss
@ -1100,11 +1100,12 @@ pkg_install_files() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
# Skip directories as they're likely symlinks in this case.
|
if [ -d "$_file" ] || test "$1" "$_file"; then
|
||||||
# Pure directories in manifests have a suffix of '/'.
|
# Skip directories as they're likely symlinks in this case.
|
||||||
[ -d "$_file" ] || test "$1" "$_file" ||
|
# Pure directories in manifests have a suffix of '/'.
|
||||||
|
continue
|
||||||
|
|
||||||
if [ -h "$_file" ]; then
|
elif [ -h "$_file" ]; then
|
||||||
# Copy the file to the destination directory overwriting
|
# Copy the file to the destination directory overwriting
|
||||||
# any existing file.
|
# any existing file.
|
||||||
cp -fP "$2$file" "${_file%/*}/."
|
cp -fP "$2$file" "${_file%/*}/."
|
||||||
|
Loading…
Reference in New Issue
Block a user