o: skip non-existent files

This commit is contained in:
josh committed 2018-02-15 09:42:29 -05:00
1 parent 7371a7010b
commit 945128153e
1 file changed
+5 -1
+5 -1
View File
@@ -1,4 +1,8 @@
#!/bin/sh #!/bin/sh
for f in "$@"; do for f in "$@"; do
xdg-open "$f" if [ -e "$f" ]; then
xdg-open "$f"
else
echo "Skipping $f" > /dev/stderr
fi
done done