fix: exec command so as to respect init properly

This commit is contained in:
Jose Diaz-Gonzalez committed 2023-08-19 14:30:18 -04:00
1 parent d61d91cf87
commit 4ff26e6e36
1 file changed
+3 -5
+3 -5
View File
@@ -23,17 +23,15 @@ main() {
fi fi
if [[ "$CMD" == "deps" ]]; then if [[ "$CMD" == "deps" ]]; then
pip freeze exec pip freeze
return $?
fi fi
if [[ "$CMD" == "serve" ]]; then if [[ "$CMD" == "serve" ]]; then
write-mkdocs write-mkdocs
mkdocs serve -a 0.0.0.0:3487 exec mkdocs serve -a 0.0.0.0:3487
return $?
fi fi
"$CMD" "${ARGS[@]}" exec "$CMD" "${ARGS[@]}"
} }
main "$@" main "$@"