diff --git a/rootfs/root/docker/setup/03-files.sh b/rootfs/root/docker/setup/03-files.sh index a51cc62..94dd5cb 100755 --- a/rootfs/root/docker/setup/03-files.sh +++ b/rootfs/root/docker/setup/03-files.sh @@ -32,7 +32,7 @@ if [ -d "/tmp/bin" ]; then for bin in "/tmp/bin"/*; do name="$(basename "$bin")" echo "Installing $name to /usr/local/bin/$name" - copy "$bin* "/usr/local/bin/$name" + copy "$bin"* "/usr/local/bin/$name" chmod -f +x "/usr/local/bin/$name" done fi @@ -40,14 +40,14 @@ unset bin if [ -d "/tmp/data" ]; then for data in "/tmp/data"/*; do name="$(basename "$data")" - echo "Installing $name to "/usr/local/share/template-files/data/$name" + echo "Installing $name to /usr/local/share/template-files/data/$name" mkdir -p "/usr/local/share/template-files/data/$name" copy "$data"/* "/usr/local/share/template-files/data/$name" done fi unset data if [ -d "/tmp/etc" ]; then - for config in "/tmp/etc"/* + for config in "/tmp/etc"/*; do name="${config//\/tmp\/etc/\/}" echo "Installing $config to /etc/$name" if [ -d "$config" ]; then