From cbb53193f79871c9a60b22ef408180cdd69910a6 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Sat, 15 Jan 2022 17:29:00 +0800 Subject: [PATCH] bash: android-sdk: add platform-tools to tail of path --- .bash_profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index 46615c0..85aafff 100644 --- a/.bash_profile +++ b/.bash_profile @@ -50,6 +50,10 @@ export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 export GTK_IM_MODULE=wayland export QT_IM_MODULE=fcitx -[ ! -d "$ANDROID_HOME" ] && [ ! -d "$ANDROID_SDK_ROOT" ] && [ -d ~/android-sdk ] && export ANDROID_SDK_ROOT=~/android-sdk +if [ ! -d "$ANDROID_HOME" ] && [ ! -d "$ANDROID_SDK_ROOT" ] && [ -d ~/android-sdk ]; then + export ANDROID_SDK_ROOT=~/android-sdk + # platform-tools also contains stuff like mke2fs, sqlite3 + PATH="$PATH:$ANDROID_SDK_ROOT/platform-tools" +fi [[ -f ~/.bashrc ]] && . ~/.bashrc -- 2.43.0