Check number of arguments in linux packaging

This commit is contained in:
Nikita Lisitsa 2020-09-16 13:13:15 +03:00
parent e4a841f132
commit 6fba44ca49

View file

@ -1,5 +1,10 @@
#!/usr/bin/env bash
if [ "$#" -ne 1 ]; then
echo "Usage: psemek-package-linux <project-dir>"
exit 0
fi
PROJECT_DIR=`realpath "${1}"`
docker run -u 1000 -v "${PROJECT_DIR}":/home/work-source psemek:package-linux /home/package.sh