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