Alois Mahdal 5 anni fa
parent
commit
011593cfb0
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      dotfiles/bash/main.bashrc

+ 1
- 0
dotfiles/bash/main.bashrc Vedi File

@@ -88,6 +88,7 @@ ckyaml() {
88 88
     # Check if YAML file $1 is loadable
89 89
     #
90 90
     local yfile=$1
91
+    test -n "$yfile" || { echo "usage: ckyaml FILE.yaml"; return 2; }
91 92
     python -c 'import yaml; import sys; print(yaml.load(sys.stdin)["this"])' <"$yfile"
92 93
 }
93 94