Address code review feedback - improve error handling and use bash built-ins
Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>
This commit is contained in:
@@ -52,7 +52,12 @@ validate_yaml_syntax() {
|
||||
|
||||
python3 - "$file" <<'PYEOF'
|
||||
import sys
|
||||
import yaml
|
||||
|
||||
try:
|
||||
import yaml
|
||||
except ModuleNotFoundError:
|
||||
print("WARNING: PyYAML module not installed. Install with: pip3 install pyyaml")
|
||||
sys.exit(0)
|
||||
|
||||
file_path = sys.argv[1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user