commit a5112bc38a1d6a105a04b35f151a1b14afe1ce89
parent 57a764e79d4769c82d2da01b496189b1ac4fcb2c
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 20 Apr 2018 12:54:38 -0400
Improve eject script with coloring
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/links/.w3m/bookmark.html b/links/.w3m/bookmark.html
@@ -77,6 +77,7 @@
<li><a href="https://en.wikibooks.org/wiki/Fortran">Fortran - Wikibooks</a>
<li><a href="https://golang.org/doc/">Go Documentation</a>
<li><a href="http://mywiki.wooledge.org/BashGuide">BashGuide - Greg Wooledge's Wiki</a>
+<li><a href="https://jekyllrb.com/docs/home/">Jekyll Docs</a>
<!--End of section (do not delete this comment)-->
</ul>
<h2>Weather</h2>
diff --git a/links/bin/ejectall b/links/bin/ejectall
@@ -2,8 +2,9 @@
for f in "/Volumes/"*; do
if [ "$f" != "/Volumes/Macintosh HD" ]; then
if [ "$f" != "/Volumes/MobileBackups" ]; then
- diskutil eject $f | \
- sed "s/Volume failed to eject/$(tput setaf 1)Volume failed to eject$(tput sgr0)/"
+ diskutil eject $f 2>&1 | \
+ sed "s/Volume failed to eject/$(tput setaf 1)Volume failed to eject$(tput sgr0)/" |
+ sed "s/Unable to find disk for .*com\.apple\.TimeMachine.*//"
fi
fi
done