home · contact · privacy
Enhance bookworm setup.
[config] / bookworm / setup_scripts / copy_dirtree.sh
index c0cb9bfea68afa67b9a99f1f6a6c468f83766afc..2c385f0675249c412fa4d06709696e9622cf5782 100755 (executable)
@@ -8,11 +8,10 @@
 #
 # CAUTION: This removes original files at the affected paths.
 set -e
+. ./misc.sh
+
+expect_n_args 3 "(source root, target root, modules)" "$@"
 
-if [ "$#" -lt 3 ]; then
-    echo 'Need arguments: source root, target root, modules.'
-    false
-fi
 source_root="$1"
 target_root="$2"
 shift 2