aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-12 19:44:04 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-12 19:44:04 +0100
commita1bae69d54bfebbdb99c4beb644ebc755a75da24 (patch)
tree48507d6e3c092ce018e8e1b39887c38d2b296052 /core
parent8b0ecac59c4fa1d87167f4c1358c2662be3a63aa (diff)
add some example pluginsHEADmaster
Diffstat (limited to 'core')
-rwxr-xr-xcore/help2
-rw-r--r--core/path2
-rwxr-xr-xcore/status (renamed from core/state)0
-rw-r--r--core/update3
4 files changed, 2 insertions, 5 deletions
diff --git a/core/help b/core/help
index 4bc5496..56783d2 100755
--- a/core/help
+++ b/core/help
@@ -33,6 +33,6 @@ done | awk '
cat << EOF
-if no action is provided, the \`state\` action is chosen by default
+if no action is provided, the \`status\` action is chosen by default
EOF
diff --git a/core/path b/core/path
index 23f7f5c..376059b 100644
--- a/core/path
+++ b/core/path
@@ -1,5 +1,5 @@
#!/bin/sh
# initialize default search path for core + plugins
-path="$core_path"
+path="$core_path:$path"
path="$XDG_DATA_HOME/$progname:$path"
export path
diff --git a/core/state b/core/status
index 6aad04b..6aad04b 100755
--- a/core/state
+++ b/core/status
diff --git a/core/update b/core/update
index 686def2..6844114 100644
--- a/core/update
+++ b/core/update
@@ -38,9 +38,6 @@ if [ $running -eq 1 ] && [ "${remaining#-}" != "${remaining}" ] ; then
update_time=1
fi
-# update remaining time if in reset
-[ $lap -eq 0 ] && [ $time = '0' ] && update_time=1
-
if [ $update_time -eq 1 ] ; then
# skip_libraries is used to prevent endless loop (see top of this file)
time=$(skip_libraries=y "$prog" lap $lap)