Browse Source

sde-config: Introduced config_id() in lib/sde-config.in - to get the value of SDECFG_ID

karasz/new-early
Alejandro Mery 16 years ago
parent
commit
51a3a532ae
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      lib/sde-config.in

+ 6
- 0
lib/sde-config.in

@ -21,3 +21,9 @@ config_exists()
{
[ -s "$SDEROOT/config/$1/packages" ]
}
config_id()
{
grep ' SDECFG_ID=' "$SDEROOT/config/$1/config" 2> /dev/null |
cut -d"'" -f2
}

Loading…
Cancel
Save