diff options
author | Joel Fernandes <joel@joelfernandes.org> | 2018-07-08 19:13:51 -0700 |
---|---|---|
committer | Joel Fernandes <joel@joelfernandes.org> | 2018-07-08 19:15:27 -0700 |
commit | 47ef21587e58b7901072866eaa274fedc818550d (patch) | |
tree | 97a812cf827d380235ad85a6f9d83c6c66a88af2 | |
parent | ffcbfe401de05d1ba30adadd9357fd55f98b1f67 (diff) | |
download | adeb-47ef21587e58b7901072866eaa274fedc818550d.tar.gz |
build-image: Fix issues with new variable names
Signed-off-by: Joel Fernandes <joel@joelfernandes.org>
-rwxr-xr-x | androdeb | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -283,8 +283,11 @@ rm $ex_files if [ $SKIP_DEVICE -eq 1 ]; then c_info "Device preparation is being skipped for the selected options" c_info "any builds that need to happen on device may be cloned but not built." - sudo $spath/buildimage $OUT_TMP $(dirname $BUILD_IMAGE)/$(basename $BUILD_IMAGE) - sudo chmod a+rw $(dirname $BUILD_IMAGE)/$(basename $BUILD_IMAGE) + + if [ ! -z $BI ]; then + sudo $spath/buildimage $OUT_TMP $(dirname $BUILD_IMAGEF)/$(basename $BUILD_IMAGEF) + sudo chmod a+rw $(dirname $BUILD_IMAGEF)/$(basename $BUILD_IMAGEF) + fi do_cleanup c_info "Your .img has been built! Enjoy!"; exit 0 |