closes https://codeberg.org/nuron/timecheck/issues/24 and https://codeberg.org/nuron/timecheck/issues/17
new installation script #25
jonas-l/timecheck:installation into testing
Just one little thing for now, but I still need to test it...
@ -67,2 +63,3 @@
Wenn das geschehen ist, steht der Nutzung nichts mehr im Wege!
Wenn du die Konfiguration von Timecheck ändern möchtest (was man nach der Installation tun sollte) führe bitte das Script
change-settings.sh
You should also change this to sudo timecheck-config
@ -0,0 +9,4 @@
SELF_PATH="$(pwd -P)"
if [ -f "$SELF_PATH/config.custom.sh" ]; then
. "$SELF_PATH/config.custom.sh"
source instead of '.' would be much easier to understand at the first view I guess.
Well, within sh (and not bash), source is unknown while . works for me.
Oh damn.
Then a comment must be enough.
May you insert a small one?
Just ran shellcheck over it
@ -0,0 +30,4 @@
# 2ドル = value
createAssignVariableCode() {
echo -n "1ドル='"
echo -n "2ドル" | sed "s/'/'\\\\''/g" | head -n1
In line 32 and 33 you use the -n flag which is according to shellcheck not defined in POSIX sh maybe printf should be used?
I will replace it by printf and test it next week.
@ -0,0 +56,4 @@
# create the shortcut for the config util
mkdir -p "$BIN_PATH" || handleError
echo "$CONFIG_HEADER\n. \"\$SCRIPT_DIR/change-settings.sh\"" > "$BIN_PATH/timecheck-config" || handleError
shellcheck tells here that echo may not expand the \n, maybe we should consider to use printf?
- README_de.md
- install-timecheck.sh
- timecheck.sh
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?