aboutsummaryrefslogtreecommitdiff
path: root/extract-files.sh
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2018-12-30 22:37:58 +0200
committerDavide Garberi <dade.garberi@gmail.com>2019-02-16 12:36:33 +0100
commit66ffd02602379c43055f0ed69f38e04641175e27 (patch)
treea4de9379b3bd14c7f683f265b2cb9439e8c971d2 /extract-files.sh
parent0ed6fe1873823119de578913c93a51541a428388 (diff)
z2_plus: extract-files: Update scripts after fixups and kang mode support
Change-Id: I917ed382a8c0e33ba7709151f2743a723dc50617 Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to 'extract-files.sh')
-rwxr-xr-xextract-files.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/extract-files.sh b/extract-files.sh
index 33d188c..88a8de0 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -16,6 +16,12 @@
# limitations under the License.
#
+# If we're being sourced by the common script that we called,
+# stop right here. No need to go down the rabbit hole.
+if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
+ return
+fi
+
set -e
# Required!
@@ -25,4 +31,4 @@ export VENDOR=zuk
export DEVICE_BRINGUP_YEAR=2016
-./../../$VENDOR/$DEVICE_COMMON/extract-files.sh "$@"
+source "./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"