Source full path
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 1 Jan 2014 14:10:08 +0000 (16:10 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 1 Jan 2014 14:10:08 +0000 (16:10 +0200)
I do not know why, but in a Tizen IVI chroot environment sourcing does not work
unless the full path is specified.

Change-Id: Ia938d0d71d70b2512fd679b859f9318b203ae69d
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
setup-extlinux-conf
setup-gummiboot-conf
setup-ivi-boot
setup-ivi-bootloader-conf
setup-ivi-fstab

index 20e00c9..5854f7d 100755 (executable)
@@ -8,9 +8,7 @@ PROG="setup-extlinux-conf"
 VER="1.0"
 
 srcdir="$(readlink -ev -- ${0%/*})"
-PATH="/usr/share/setup-ivi:$srcdir:$PATH"
-
-. setup-ivi-sh-functions
+. "$srcdir/setup-ivi-sh-functions"
 
 # This is a small trick which I use to make sure my scripts are portable -
 # check if 'dash' is present, and if yes - use it.
index 7f19c6b..cd9c245 100755 (executable)
@@ -8,9 +8,7 @@ PROG="setup-gummiboot-conf"
 VER="1.0"
 
 srcdir="$(readlink -ev -- ${0%/*})"
-PATH="/usr/share/setup-ivi:$srcdir:$PATH"
-
-. setup-ivi-sh-functions
+. "$srcdir/setup-ivi-sh-functions"
 
 # This is a small trick which I use to make sure my scripts are portable -
 # check if 'dash' is present, and if yes - use it.
index 8e00208..13f2406 100755 (executable)
@@ -10,8 +10,8 @@ VER="1.0"
 srcdir="$(readlink -ev -- ${0%/*})"
 PATH="/usr/share/setup-ivi:$srcdir:$PATH"
 
-. setup-ivi-sh-functions
-. installerfw-sh-functions
+. "$srcdir/setup-ivi-sh-functions"
+. "$srcdir/installerfw-sh-functions"
 
 # This is a small trick which I use to make sure my scripts are portable -
 # check if 'dash' is present, and if yes - use it.
index ac59db2..4accba1 100755 (executable)
@@ -10,8 +10,8 @@ VER="1.0"
 srcdir="$(readlink -ev -- ${0%/*})"
 PATH="/usr/share/setup-ivi:$srcdir:$PATH"
 
-. setup-ivi-sh-functions
-. installerfw-sh-functions
+. "$srcdir/setup-ivi-sh-functions"
+. "$srcdir/installerfw-sh-functions"
 
 # This is a small trick which I use to make sure my scripts are portable -
 # check if 'dash' is present, and if yes - use it.
index 8b67734..100966c 100755 (executable)
@@ -10,8 +10,8 @@ VER="1.0"
 srcdir="$(readlink -ev -- ${0%/*})"
 PATH="/usr/share/setup-ivi:$srcdir:$PATH"
 
-. setup-ivi-sh-functions
-. installerfw-sh-functions
+. "$srcdir/setup-ivi-sh-functions"
+. "$srcdir/installerfw-sh-functions"
 
 # This is a small trick which I use to make sure my scripts are portable -
 # check if 'dash' is present, and if yes - use it.