Merge "Use readlink to get script path"

This commit is contained in:
Jenkins 2014-07-18 10:01:35 +00:00 committed by Gerrit Code Review
commit 60dc9398fe

View File

@ -25,7 +25,7 @@ export DIB_ARGS="$@"
export DIB_ENV=$(export | grep ' DIB_.*=') export DIB_ENV=$(export | grep ' DIB_.*=')
SCRIPTNAME=$(basename $0) SCRIPTNAME=$(basename $0)
SCRIPT_HOME=$(dirname $0) SCRIPT_HOME=$(dirname $(readlink -f $0))
if [ -d $SCRIPT_HOME/../share/diskimage-builder ]; then if [ -d $SCRIPT_HOME/../share/diskimage-builder ]; then
export _PREFIX=$SCRIPT_HOME/../share/diskimage-builder export _PREFIX=$SCRIPT_HOME/../share/diskimage-builder
else else