]> AND Private Git Repository - loba.git/blobdiff - new_loba.sh
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
API change in SimGrid 3.8: MSG_global_init -> MSG_init.
[loba.git] / new_loba.sh
index 40b6ea193879a17d2bc058abf46c86f532b783bc..ba076fb753f1ee4f64d873ea29a9917526bb233c 100755 (executable)
@@ -25,7 +25,7 @@ EOF
 fi
 
 name=$(echo $1 | tr A-Z a-z)
-if ! echo "$name" | grep -q '^[a-z][a-z0-9_]*$' \
+if ! echo "$name" | grep -q '^[a-z0-9_]\+$' \
     || ! [ $(echo "$name" | wc -l) = 1 ]; then
     echo "ERROR: invalid name -- \"$name\"" >&2
     exit 1