fix: exec command so as to respect init properly
This commit is contained in:
1 parent
d61d91cf87
commit
4ff26e6e36
1 file changed
+3
-5
Vendored
+3
-5
@@ -23,17 +23,15 @@ main() {
|
||||
fi
|
||||
|
||||
if [[ "$CMD" == "deps" ]]; then
|
||||
pip freeze
|
||||
return $?
|
||||
exec pip freeze
|
||||
fi
|
||||
|
||||
if [[ "$CMD" == "serve" ]]; then
|
||||
write-mkdocs
|
||||
mkdocs serve -a 0.0.0.0:3487
|
||||
return $?
|
||||
exec mkdocs serve -a 0.0.0.0:3487
|
||||
fi
|
||||
|
||||
"$CMD" "${ARGS[@]}"
|
||||
exec "$CMD" "${ARGS[@]}"
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in new issue
Block a user