auto-detect GIRPATH for x86_64

parent 9d164901
......@@ -6,7 +6,13 @@ CODENAME="We're Getting High With The Rhythm"
ERR_MSG=""
if [[ ! $GIRPATH ]]; then
export GIRPATH="/usr/lib/girepository-1.0/"
if [[ -d "/usr/lib/girepository-1.0/" ]]; then
export GIRPATH="/usr/lib/girepository-1.0/"
elif [[ -d "/usr/lib64/girepository-1.0/" ]]; then
export GIRPATH="/usr/lib64/girepository-1.0/"
else
echo *** GIRPATH not detected ***
fi
fi
export OLDPATH=$PATH
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment