pff: honorer l'ordre de .pff.conf pour le premier profil
This commit is contained in:
parent
af006c4db9
commit
2fa28d5cd3
6
pff
6
pff
|
@ -338,7 +338,13 @@ function get_user_profiles() {
|
|||
|
||||
function get_first_profile() {
|
||||
# afficher le premier profil autre que Base du projet pff $1
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue