mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 18:30:55 +01:00
42336: force single column output when getting filenames with adb ls command
This commit is contained in:
parent
ffacc95766
commit
0c324124d0
2 changed files with 4 additions and 1 deletions
|
|
@ -480,7 +480,7 @@ _adb_remote_folder () {
|
|||
pref=${pref%/*}/
|
||||
fi
|
||||
# yes, this ls is sickening to look at, but android doesn't have printf or find
|
||||
files=(${${(f)"$(adb ${=ADB_DEVICE_SPECIFICATION} shell 'ls -d 2> /dev/null '$pref'*/ '$pref'*')"}%$'\r'})
|
||||
files=(${${(f)"$(adb ${=ADB_DEVICE_SPECIFICATION} shell 'ls -1d 2> /dev/null '$pref'*/ '$pref'*')"}%$'\r'})
|
||||
dirs=(${${(M)files:#*/}%/})
|
||||
files=(${${files:|dirs}:#*\*(/|)})
|
||||
_adb_device_available && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue