bug
This commit is contained in:
parent
c5e15368a1
commit
751e372bfd
12
dk
12
dk
|
@ -1850,7 +1850,7 @@ exit((PHP_VERSION_ID < $version)? 0: 1);
|
|||
################################################################################
|
||||
|
||||
function resolve_dm_alias() {
|
||||
local alias dm
|
||||
local alias_dm alias dm
|
||||
# chercher d'abord dans les définitions par défaut
|
||||
for alias_dm in "${DM_ALIASES[@]}"; do
|
||||
alias="${alias_dm%%:*}"
|
||||
|
@ -1881,11 +1881,11 @@ function resolve_dm_alias() {
|
|||
}
|
||||
|
||||
function resolve_dm_profile() {
|
||||
local dm profile
|
||||
local dm_profile dm profile
|
||||
# chercher d'abord dans les définitions par défaut
|
||||
for dm_profile in "${DM_PROFILES[@]}"; do
|
||||
dm="${dm_profile%%*:}"
|
||||
profile="${dm_profile#:*}"
|
||||
dm="${dm_profile%%:*}"
|
||||
profile="${dm_profile#*:}"
|
||||
if [ "$1" == "$dm" ]; then
|
||||
echo "$profile"
|
||||
return 0
|
||||
|
@ -1898,8 +1898,8 @@ function resolve_dm_profile() {
|
|||
[ -f "$clusterdir/0config/configure.conf" ] || continue
|
||||
source "$clusterdir/0config/configure.conf"
|
||||
for dm_profile in "${DM_PROFILES[@]}"; do
|
||||
dm="${dm_profile%%*:}"
|
||||
profile="${dm_profile#:*}"
|
||||
dm="${dm_profile%%:*}"
|
||||
profile="${dm_profile#*:}"
|
||||
if [ "$1" == "$dm" ]; then
|
||||
echo "$profile"
|
||||
return 0
|
||||
|
|
Loading…
Reference in New Issue