1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-18 17:53:23 -07:00

error-handling in dbusiest

This commit is contained in:
Connor Olding 2013-07-08 17:46:33 -07:00
parent e3cc623633
commit 5c26ac471e
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/bin/zsh
dbusiest | read -r c d
[ -z $c ] && return 1
<<<"$c $d"
cd $d

View File

@ -1,7 +1,8 @@
#!/bin/zsh
local c d
for d in *(FD); do
for d in *(FDN); do
print $(find $d 2>/dev/null | wc -l) $d
done | sort -nr | while read c d; do
echo -E $c $d
done
[ -z $d ] && return 1