summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fernandes <joel@joelfernandes.org>2018-07-08 19:13:51 -0700
committerJoel Fernandes <joel@joelfernandes.org>2018-07-08 19:15:27 -0700
commit47ef21587e58b7901072866eaa274fedc818550d (patch)
tree97a812cf827d380235ad85a6f9d83c6c66a88af2
parentffcbfe401de05d1ba30adadd9357fd55f98b1f67 (diff)
downloadadeb-47ef21587e58b7901072866eaa274fedc818550d.tar.gz
build-image: Fix issues with new variable names
Signed-off-by: Joel Fernandes <joel@joelfernandes.org>
-rwxr-xr-xandrodeb7
1 files changed, 5 insertions, 2 deletions
diff --git a/androdeb b/androdeb
index da9a493..d3c6c57 100755
--- a/androdeb
+++ b/androdeb
@@ -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