mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
- simplifies scripts to support posix shell - adds REGISTERY_PREFIX to support usage of local docker registry - renames wrapper template - adds discovery for tty and interactive for wrappers
19 lines
219 B
Bash
Executable File
19 lines
219 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
running_in_background() {
|
|
pid="$1"
|
|
|
|
case "$("$PS" -o stat= -p "$pid" 2>/dev/null || echo '+')" in
|
|
*+*) ;;
|
|
*) return 0 ;;
|
|
esac
|
|
|
|
return 1
|
|
}
|
|
|
|
PS="${PS:-ps}"
|
|
|
|
running_in_background "$@"
|