summaryrefslogtreecommitdiff
path: root/ModSlots/cleanup_nativePC.sh
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-01-26 10:07:31 -0500
committerAndrew Opalach <andrew@akon.city> 2026-01-26 10:31:10 -0500
commitc4f787e9acbffd4084392a90f536a5bdddf4cd89 (patch)
tree1250c2d827fb107040e9cc464f3d905691cb9d8e /ModSlots/cleanup_nativePC.sh
parent8fe04fd5722edbedfc07772e2123783128600f2e (diff)
downloadNewCamera-c4f787e9acbffd4084392a90f536a5bdddf4cd89.tar.gz
NewCamera-c4f787e9acbffd4084392a90f536a5bdddf4cd89.tar.bz2
NewCamera-c4f787e9acbffd4084392a90f536a5bdddf4cd89.zip
Don't include slinger by default in ModSlots
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'ModSlots/cleanup_nativePC.sh')
-rwxr-xr-xModSlots/cleanup_nativePC.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/ModSlots/cleanup_nativePC.sh b/ModSlots/cleanup_nativePC.sh
new file mode 100755
index 0000000..d2d4341
--- /dev/null
+++ b/ModSlots/cleanup_nativePC.sh
@@ -0,0 +1,16 @@
+#! /usr/bin/env sh
+
+if [[ $(basename "$PWD") != "nativePC" ]]; then
+ echo "This should only be run from the 'Monster Hunter World/nativePC' directory."
+ exit 1
+fi
+
+if [[ "$1" == "print" ]]; then
+ find . -depth -type d -empty -print | grep .
+else
+ find . -depth -type d -empty -print -delete | grep .
+fi
+
+if [[ $? != 0 ]]; then
+ echo "No empty directories found."
+fi