pff: sélectionner le premier profil par défaut
This commit is contained in:
parent
e20757b45e
commit
af006c4db9
4
pff
4
pff
|
@ -1125,10 +1125,10 @@ function switch_cmd() {
|
|||
local profile="$1" pffdir="$2"
|
||||
local -a profiles
|
||||
|
||||
[ -n "$profile" ] || profile=Base
|
||||
|
||||
ensure_pffdir pffdir "$pffdir"
|
||||
autoinit "$pffdir"
|
||||
[ -n "$profile" ] || setx profile=get_first_profile "$pffdir"
|
||||
|
||||
setx -a profiles=get_profiles "$pffdir"
|
||||
if ! array_contains profiles "$profile"; then
|
||||
if ! array_contains PROFILES "$profile"; then
|
||||
|
|
Loading…
Reference in New Issue