about summary refs log tree commit diff
path: root/scripts/uninstall-modules
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/uninstall-modules')
-rwxr-xr-xscripts/uninstall-modules9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/uninstall-modules b/scripts/uninstall-modules
new file mode 100755
index 0000000..545c19d
--- /dev/null
+++ b/scripts/uninstall-modules
@@ -0,0 +1,9 @@
+#!/bin/sh -eu
+
+install_dir="$1"
+shift
+
+for mod; do
+	printf "uninstalling %s\n" "$mod"
+	rm -r "$install_dir/$mod"
+done