summaryrefslogtreecommitdiff
path: root/home/xyz
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz')
-rwxr-xr-xhome/xyz/.local/bin/o2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/o b/home/xyz/.local/bin/o
index 21464974..38c74968 100755
--- a/home/xyz/.local/bin/o
+++ b/home/xyz/.local/bin/o
@@ -8,7 +8,7 @@
# I don't care about errors, I don't want to handle errors, just shut up please.
# nohup seems not necessary if don't care about daemon SIGHUP requirement
-if [ $# -eq 1 ] && [ -e "$1" ] && ! [ -x "$1" ]; then
+if [ $# -eq 1 ] && [ -e "$1" ] && { ! [ -x "$1" ] || [ -d "$1" ];}; then
nohup xdg-open "$1" 0<&- >&- 2>&- &
else
nohup "$@" 0<&- >&- 2>&- &