From 2b27abddad48a365f4c48b1081cf44d10310dc04 Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 27 Aug 2024 13:44:45 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/root/docker/setup/03-files.sh --- rootfs/root/docker/setup/03-files.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs/root/docker/setup/03-files.sh b/rootfs/root/docker/setup/03-files.sh index 3ee690f..d55ef7d 100755 --- a/rootfs/root/docker/setup/03-files.sh +++ b/rootfs/root/docker/setup/03-files.sh @@ -39,7 +39,7 @@ fi unset bin if [ -d "/tmp/var" ]; then for var in "/tmp/var"/*; do - name="${var//\/tmp\/var\//}" + name="$(basename "$var")" echo "Installing $var to /var/$name" if [ -d "$var" ]; then mkdir -p "/var/$name" @@ -52,7 +52,7 @@ fi unset var if [ -d "/tmp/etc" ]; then for config in "/tmp/etc"/*; do - name="${config//\/tmp\/etc\//}" + name="$(basename "$config")" echo "Installing $config to /etc/$name" if [ -d "$config" ]; then mkdir -p "/etc/$name" @@ -68,7 +68,7 @@ fi unset config if [ -d "/tmp/data" ]; then for data in "/tmp/data"/*; do - name="${data//\/tmp\/data\//}" + name="$(basename "$bin")" echo "Installing $data to /usr/local/share/template-files/data" if [ -d "$data" ]; then mkdir -p "/usr/local/share/template-files/data/$name"