updating...
This commit is contained in:
parent
29ce50540e
commit
78a3df7b93
@ -78,7 +78,7 @@ echo
|
|||||||
|
|
||||||
# check PKGNAME
|
# check PKGNAME
|
||||||
set +e # disable bail-on-error because we want a non-zero if a package name is not right, etc.
|
set +e # disable bail-on-error because we want a non-zero if a package name is not right, etc.
|
||||||
echo "${PKGNAME}" | egrep -Eq '^([a-z0-9\_])+$'
|
echo "${PKGNAME}" | egrep -Eq '^([a-z0-9\_\-])+$'
|
||||||
if [[ "${?}" -ne '0' ]];
|
if [[ "${?}" -ne '0' ]];
|
||||||
then
|
then
|
||||||
echo "ERROR: That does not seem to be a valid package name!"
|
echo "ERROR: That does not seem to be a valid package name!"
|
||||||
|
Loading…
Reference in New Issue
Block a user