diff options
Diffstat (limited to 'scripts/install-modules')
-rwxr-xr-x | scripts/install-modules | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/install-modules b/scripts/install-modules new file mode 100755 index 0000000..5f61004 --- /dev/null +++ b/scripts/install-modules @@ -0,0 +1,10 @@ +#!/bin/sh -eu + +install_dir="$1" +shift + +for mod; do + printf "installing %s\n" "$mod" + mkdir -p "$install_dir/$mod" + install -m644 "$mod"/* "$install_dir/$mod" +done |