Changes

From SME Server
Jump to navigationJump to search
m
no edit summary
Line 2: Line 2:  
  #!/bin/bash
 
  #!/bin/bash
 
  ARG=$1
 
  ARG=$1
  if [[ ! $ARG =~ ^[0-9]+$ ]]; then
+
  if [[ ! $ARG =~ ^[1-9]+$ ]]; then
 
   echo "Invalid argument. Argument must be a positive number.";echo
 
   echo "Invalid argument. Argument must be a positive number.";echo
 
   echo "Usage: randpw [n]";echo
 
   echo "Usage: randpw [n]";echo

Navigation menu