summarylogtreecommitdiffstats
path: root/evesetup.shlib
diff options
context:
space:
mode:
Diffstat (limited to 'evesetup.shlib')
-rw-r--r--evesetup.shlib12
1 files changed, 8 insertions, 4 deletions
diff --git a/evesetup.shlib b/evesetup.shlib
index c2ce68e19a83..c2fbfae0a7cf 100644
--- a/evesetup.shlib
+++ b/evesetup.shlib
@@ -14,7 +14,7 @@ SHAREDIR="$HOME/.eve"
check_env() {
if [ -d "$CONFDIR" ] ;then
if [ -r "$EVECONF" ] ;then
- SHAREDIR=$(grep SharedCacheFolder $EVECONF | cut -d= -f2)
+ SHAREDIR=$(getval SharedCacheFolder)
fi
fi
[ ! -d "$SHAREDIR" ] && SHAREDIR=""
@@ -47,9 +47,9 @@ check_wine() {
desktop_msg "ERROR: EVE Configuration not found!"
exit 1
fi
- CUSTOMWP=$(grep CustomWinePath $EVECONF | cut -d= -f2)
- SHAREDIR=$(grep SharedCacheFolder $EVECONF | cut -d= -f2)
- UCW=$(grep UseCustomWine $EVECONF | cut -d= -f2)
+ CUSTOMWP=$(getval CustomWinePath)
+ SHAREDIR=$(getval SharedCacheFolder)
+ UCW=$(getval UseCustomWine)
WINEPREFIX=${SHAREDIR}wineenv
if [ "x$UCW" = "xtrue" ] ;then
WINEPATH=${CUSTOMWP%/*}
@@ -102,3 +102,7 @@ desktop_msg() {
fi
printf "$(basename $0): $@\n"
}
+
+getval() {
+ printf $(grep "$1" $EVECONF | cut -d= -f2)
+}