aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/bin')
-rwxr-xr-x.local/share/bin/khal6
1 files changed, 4 insertions, 2 deletions
diff --git a/.local/share/bin/khal b/.local/share/bin/khal
index 23f188a..d417469 100755
--- a/.local/share/bin/khal
+++ b/.local/share/bin/khal
@@ -1,10 +1,12 @@
#!/bin/sh
CFG="$XDG_CONFIG_HOME/khal/config"
-cat - "$XDG_CONFIG_HOME/khal/base" << "EOF" > "$CFG"
+if [ "$CFG" -ot "$XDG_CONFIG_HOME/khal/config.sh" ] ; then
+ cat - "$XDG_CONFIG_HOME/khal/base" << "EOF" > "$CFG"
# THIS FILE IS AUTO-GENERATED, EDIT config_gen OR base INSTEAD!!!
EOF
-"$XDG_CONFIG_HOME/khal/config_gen" >> "$CFG"
+ "$XDG_CONFIG_HOME/khal/config_gen" >> "$CFG"
+fi
# aliases
[ "$1" == "i" ] && { shift ; set -- interactive "$@" ; }