Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
1.4 KiB
Diff
45 lines
1.4 KiB
Diff
diff --git a/wikiman.sh b/wikiman.sh
|
|
index 994c0b7..49bfc4b 100755
|
|
--- a/wikiman.sh
|
|
+++ b/wikiman.sh
|
|
@@ -50,38 +50,7 @@ if printenv WIKIMAN_TUI_PREVIEW >/dev/null; then
|
|
fi
|
|
|
|
init() {
|
|
-
|
|
- # BSD compatibility: Installation prefix
|
|
-
|
|
- case "$(dirname "$0")" in
|
|
- "$HOME/bin"|"$HOME/.local/bin")
|
|
- conf_sys_usr="$HOME/.local/share";
|
|
- conf_sys_etc="${XDG_CONFIG_HOME:-"$HOME/.config"}/wikiman";;
|
|
- '/bin'|'/sbin'|'/usr/bin'|'/usr/sbin')
|
|
- conf_sys_usr='/usr';
|
|
- conf_sys_etc='/etc';;
|
|
- '/usr/local/bin'|'/usr/local/sbin')
|
|
- conf_sys_usr='/usr/local';
|
|
- conf_sys_etc='/usr/local/etc';;
|
|
- *)
|
|
- case "$(dirname "$(command -v wikiman)")" in
|
|
- "$HOME/bin"|"$HOME/.local/bin")
|
|
- >&2 echo 'warning: unsupported installation path, using fallback for user install' ;
|
|
- conf_sys_usr="$HOME/.local/share";
|
|
- conf_sys_etc="${XDG_CONFIG_HOME:-"$HOME/.config"}/wikiman";;
|
|
- '/bin'|'/sbin'|'/usr/bin'|'/usr/sbin')
|
|
- >&2 echo 'warning: unsupported installation path, using fallback for Linux' ;
|
|
- conf_sys_usr='/usr';
|
|
- conf_sys_etc='/etc';;
|
|
- '/usr/local/bin'|'/usr/local/sbin')
|
|
- >&2 echo 'warning: unsupported installation path, using fallback for BSD' ;
|
|
- conf_sys_usr='/usr/local';
|
|
- conf_sys_etc='/usr/local/etc';;
|
|
- *)
|
|
- >&2 echo 'error: unsupported installation path - failed to establish fallback' ;
|
|
- exit 5;;
|
|
- esac;;
|
|
- esac
|
|
+ conf_sys_etc="/etc"
|
|
|
|
export conf_sys_usr
|
|
export conf_sys_etc
|