aboutsummaryrefslogtreecommitdiffstats
path: root/loadargs
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2020-09-09 19:36:13 +0100
committerTomasz Kramkowski <tk@the-tk.com>2020-09-09 19:36:13 +0100
commitb435a5824bf88b9bddddb81e645623caa2e334bc (patch)
tree2f26f5e00ed0825bec0980c0f815e814dcfa0650 /loadargs
parentfaa44a2bac0a9ddef75e68990486ccae7377ac36 (diff)
downloadpack-b435a5824bf88b9bddddb81e645623caa2e334bc.tar.gz
pack-b435a5824bf88b9bddddb81e645623caa2e334bc.tar.xz
pack-b435a5824bf88b9bddddb81e645623caa2e334bc.zip
Switch to using redo
Diffstat (limited to 'loadargs')
-rw-r--r--loadargs8
1 files changed, 8 insertions, 0 deletions
diff --git a/loadargs b/loadargs
new file mode 100644
index 0000000..3ec8b0d
--- /dev/null
+++ b/loadargs
@@ -0,0 +1,8 @@
+#/fake/bash
+if [ -r "$1.args" ]; then
+ redo-ifchange "$1.args"
+ mapfile -t args <"$1.args"
+else
+ redo-ifcreate "$1.args"
+ args=()
+fi