Wizard: remove else after return in firstboot
This commit is contained in:
parent
548a87bb44
commit
85d8850dce
1 changed files with 6 additions and 2 deletions
|
|
@ -31,9 +31,13 @@ const detectScriptType = (scriptString: string): Language => {
|
|||
|
||||
if (path.includes('bin/bash') || path.includes('bin/sh')) {
|
||||
return Language.shell;
|
||||
} else if (path.includes('bin/python') || path.includes('bin/python3')) {
|
||||
}
|
||||
|
||||
if (path.includes('bin/python') || path.includes('bin/python3')) {
|
||||
return Language.python;
|
||||
} else if (path.includes('ansible-playbook')) {
|
||||
}
|
||||
|
||||
if (path.includes('ansible-playbook')) {
|
||||
return Language.yaml;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue