Check number of arguments in linux packaging
This commit is contained in:
parent
e4a841f132
commit
6fba44ca49
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue