summaryrefslogtreecommitdiffstats
path: root/.root/update.sh
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2024-03-10 20:38:25 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2024-03-10 20:57:57 +0300
commitdad11ba32a578ddc6f156201a2bc03af6d20ee5f (patch)
treee5d8c838e71bffe8994e988a71a004c10f40dc0a /.root/update.sh
parentb99a645e1a877fc31ab84d0b7f848dcaa049a51c (diff)
added systemwide files to .root directory
For more information, check .root/README.md
Diffstat (limited to '.root/update.sh')
-rwxr-xr-x.root/update.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.root/update.sh b/.root/update.sh
new file mode 100755
index 0000000..4acca3f
--- /dev/null
+++ b/.root/update.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+function cp_into() {
+ for i in $(cat ${0%/*}/tracked); do
+ mkdir -p .root/${i%/*}
+ echo copying $i to .root/$i
+ cp $i .root/${i};
+ done
+}
+
+cp_into