duplicati/ReleaseBuilder/Resources/fedora/duplicati-install-recursive.sh
Kenneth Skovhede b73e94de7e Removed unused files.
Moved installer files into the ReleaseBuilder
2024-04-23 14:24:38 +02:00

17 lines
378 B
Bash
Executable file

#!/bin/bash
# This file is a workaround to install a directory recursively,
# without hitting limitations of the SPEC file build environment
OLDIFS=$IFS
IFS=$'\n'
for file in $(find "$1" -type d -printf '%P\n'); do
install -p -d -m 755 "$2/${file}"
done
for file in $(find "$1" -type f -printf '%P\n'); do
install -p -D -m 644 "$1/${file}" "$2/${file}"
done
IFS=$OLDIFS