pff: honorer l'ordre de .pff.conf pour le premier profil
This commit is contained in:
parent
af006c4db9
commit
2fa28d5cd3
8
pff
8
pff
|
@ -338,7 +338,13 @@ function get_user_profiles() {
|
||||||
|
|
||||||
function get_first_profile() {
|
function get_first_profile() {
|
||||||
# afficher le premier profil autre que Base du projet pff $1
|
# afficher le premier profil autre que Base du projet pff $1
|
||||||
get_user_profiles "$@" | head -n1
|
local profile
|
||||||
|
profile="${PROFILES[0]}"
|
||||||
|
if [ -z "$profile" -o "$profile" == Base ]; then
|
||||||
|
get_user_profiles "$@" | head -n1
|
||||||
|
else
|
||||||
|
echo "$profile"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_local_files() {
|
function get_local_files() {
|
||||||
|
|
Loading…
Reference in New Issue