fix: improve discovery of home directory
This commit is contained in:
parent
07da169c5e
commit
410e51ddd4
2 changed files with 3 additions and 2 deletions
|
@ -147,6 +147,7 @@ and ideas that need to be fleshed out.
|
|||
- Handler preparation - update repos and cache last update time in /tmp
|
||||
- Run file in tempdir by default?
|
||||
- Handler for downloaded scripts (e.g. passff-host, funkwhale)
|
||||
- Enable services after install, e.g. syncthing and docker
|
||||
|
||||
#### Windows Flow
|
||||
- Install choco and git offline
|
||||
|
|
4
instalee
4
instalee
|
@ -3,8 +3,8 @@
|
|||
## DEFINITIONS
|
||||
name="$(basename "$0")"
|
||||
self="$(realpath "$0")"
|
||||
handlersfile="$(find "$INSTALEE_HOME" "${XDG_CONFIG_HOME:-$HOME/.config}/$name" "$HOME/.$name" "$(realpath "$(dirname "$0")")" "$PWD" -maxdepth 1 -name "handlers.available*" 2>/dev/null | head -1)"
|
||||
export dir_home="$(dirname "$handlersfile")"
|
||||
export dir_home="$(dirname $(find "$INSTALEE_HOME" "${XDG_CONFIG_HOME:-$HOME/.config}/$name" "$HOME/.$name" "$(realpath "$(dirname "$0")")" "$PWD" -maxdepth 1 -name "handlers.available*" 2>/dev/null | head -1))"
|
||||
handlersfile="$dir_home/handlers.available"
|
||||
dir_packages="$dir_home/packages"
|
||||
|
||||
highlight() { echo "[4m[1m$1[0m" >&2; }
|
||||
|
|
Loading…
Add table
Reference in a new issue