diff options
author | Vladimir Oltean <olteanv@gmail.com> | 2018-12-30 22:37:58 +0200 |
---|---|---|
committer | Davide Garberi <dade.garberi@gmail.com> | 2019-02-16 12:36:33 +0100 |
commit | 66ffd02602379c43055f0ed69f38e04641175e27 (patch) | |
tree | a4de9379b3bd14c7f683f265b2cb9439e8c971d2 /extract-files.sh | |
parent | 0ed6fe1873823119de578913c93a51541a428388 (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-x | extract-files.sh | 8 |
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" "$@" |