diff --git a/src/components/scripts/ScriptFormModal.vue b/src/components/scripts/ScriptFormModal.vue index 03db026..3dc0a69 100644 --- a/src/components/scripts/ScriptFormModal.vue +++ b/src/components/scripts/ScriptFormModal.vue @@ -15,6 +15,11 @@ + + Shell/Python + scripts on Linux/Mac need a shebang at the top of the script e.g. #!/bin/bash or + #!/usr/bin/python3
Add one to get rid of this warning. Ignore if windows. +
{ + if (script.value.shell === "shell" || script.value.shell === "python") { + return !script.value.script_body.includes("#!"); + } + }); + const title = computed(() => { if (props.script) { return props.readonly @@ -271,6 +282,7 @@ export default { agent, agentLoading, lang, + missingShebang, // non-reactive data shellOptions,