helpers (bash): fix overridable prefix dir not containing "zio" folder
parent
5dc53f1963
commit
5e28e29f6f
|
@ -11,10 +11,10 @@ function die() {
|
||||||
|
|
||||||
function get_config_dir() {
|
function get_config_dir() {
|
||||||
prog="$(echo $1 | sed -e "s/sh.zio.//g")"
|
prog="$(echo $1 | sed -e "s/sh.zio.//g")"
|
||||||
prefix="/etc/zio"
|
prefix_dir="/etc/zio"
|
||||||
|
|
||||||
if [[ -n "$2" ]]; then
|
if [[ -n "$2" ]]; then
|
||||||
prefix="$2"
|
prefix_dir="$2/zio"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
config_dir=""
|
config_dir=""
|
||||||
|
|
Loading…
Reference in New Issue