9 lines
156 B
Bash
Executable File
9 lines
156 B
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
if [ ! -e "${1}" ]; then
|
|
printf 'File %s not found' "${1}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
setsid --fork xdg-open "${1}" < /dev/null > /dev/null 2>&1
|