Use express-validator, refactor

This commit is contained in:
Vrganj 2021-01-16 00:53:51 +01:00
parent a0693fb3a2
commit e80bb0372b
6 changed files with 261 additions and 226 deletions

View file

@ -4,11 +4,7 @@ dir="$( cd "$( dirname "$0" )" && pwd )"
touch $dir/lockfile
if [ -z "$1" ]; then
echo "invalid args"
exit
fi
if [ -z "$2" ]; then
if [ -z "$1" ] || [ -z "$2" ]; then
echo "invalid args"
exit
fi