forked from Mirror/pmbootstrap
Use $XDG_CONFIG_HOME instead of hardcoded path (MR 1969)
This commit is contained in:
parent
86d61b8012
commit
72e24f7f96
3 changed files with 3 additions and 5 deletions
|
@ -68,7 +68,7 @@ set_alias_pmbootstrap() {
|
|||
pmbootstrap="$pmbootstrap_dir"/pmbootstrap.py
|
||||
# shellcheck disable=SC2139
|
||||
alias pmbootstrap="\"$pmbootstrap\""
|
||||
if [ -e ~/.config/pmbootstrap.cfg ]; then
|
||||
if [ -e "${XDG_CONFIG_HOME:-$HOME/.config}"/pmbootstrap.cfg ]; then
|
||||
"$pmbootstrap" work_migrate
|
||||
else
|
||||
echo "NOTE: First run of pmbootstrap, running 'pmbootstrap init'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue