Browse code

Fix "Removing bundles/" not actually removing bundles

Before:

Running `ls -la bundles/` before, and after removing:

ls -la bundles/
total 16
drwxr-xr-x 7 root root 224 Jul 12 12:25 .
drwxr-xr-x 1 root root 4096 Jul 12 12:30 ..
drwxr-xr-x 2 root root 64 Jul 12 10:00 dynbinary
drwxr-xr-x 6 root root 192 Jul 12 12:25 dynbinary-daemon
lrwxrwxrwx 1 root root 1 Jul 12 12:25 latest -> .
drwxr-xr-x 92 root root 2944 Jul 12 12:29 test-integration

Removing bundles/

ls -la bundles/
total 16
drwxr-xr-x 7 root root 224 Jul 12 12:25 .
drwxr-xr-x 1 root root 4096 Jul 12 12:30 ..
drwxr-xr-x 2 root root 64 Jul 12 10:00 dynbinary
drwxr-xr-x 6 root root 192 Jul 12 12:25 dynbinary-daemon
lrwxrwxrwx 1 root root 1 Jul 12 12:25 latest -> .
drwxr-xr-x 92 root root 2944 Jul 12 12:29 test-integration

After:

Running `ls -la bundles/` before, and after removing:

ls -la bundles/
total 16
drwxr-xr-x 7 root root 224 Jul 12 12:25 .
drwxr-xr-x 1 root root 4096 Jul 12 12:30 ..
drwxr-xr-x 2 root root 64 Jul 12 10:00 dynbinary
drwxr-xr-x 6 root root 192 Jul 12 12:25 dynbinary-daemon
lrwxrwxrwx 1 root root 1 Jul 12 12:25 latest -> .
drwxr-xr-x 92 root root 2944 Jul 12 12:29 test-integration

Removing bundles/

ls -la bundles/
total 4
drwxr-xr-x 2 root root 64 Jul 12 12:25 .
drwxr-xr-x 1 root root 4096 Jul 12 12:30 ..

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit f75f34249bd55b449dd4e0be08624fe0dcf50b63)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/07/12 21:41:08
Showing 1 changed files
... ...
@@ -174,7 +174,7 @@ bundle() {
174 174
 main() {
175 175
 	if [ -z "${KEEPBUNDLE-}" ]; then
176 176
 		echo "Removing bundles/"
177
-		rm -rf "bundles/*"
177
+		rm -rf bundles/*
178 178
 		echo
179 179
 	fi
180 180
 	mkdir -p bundles