Skip to content

Commit 56e13d9

Browse files
authored
Update android-tools-appimage.sh
1 parent bb3e9b3 commit 56e13d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

android-tools-appimage.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ cat >> ./AppRun << 'EOF'
3434
CURRENTDIR="$(readlink -f "$(dirname "$0")")"
3535
UDEVNOTICE=$(echo "If you get errors it might be because you don't have the android udev rules for your device" )
3636
if [ "$1" = "adb" ]; then
37-
"$CURRENTDIR"/adb "${@:2}"
37+
"$CURRENTDIR"/adb "${@:2}" || echo "$UDEVNOTICE"
3838
elif [ "$1" = "etc1tool" ]; then
3939
"$CURRENTDIR"/etc1tool "${@:2}" || echo "$UDEVNOTICE"
4040
elif [ "$1" = "fastboot" ]; then
@@ -68,4 +68,4 @@ mv ./*AppImage ./"$VERSION"-"platform-tools.AppImage"
6868
if [ -z "$APP" ]; then exit 1; fi # Being extra safe lol
6969
rm -rf "./$APP.AppDir" && rm ./appimagetool
7070
mv ./*.AppImage .. && cd .. && rm -rf "./tmp"
71-
echo "All Done!"
71+
echo "All Done!"

0 commit comments

Comments
 (0)