o: skip non-existent files

This commit is contained in:
Josh Holtrop 2018-02-15 09:42:29 -05:00
parent 7371a7010b
commit 945128153e

4
o
View File

@ -1,4 +1,8 @@
#!/bin/sh
for f in "$@"; do
if [ -e "$f" ]; then
xdg-open "$f"
else
echo "Skipping $f" > /dev/stderr
fi
done