* Adding check for requirements file, in case user is simply using a source file and --src flag * Adding bash check as per review comment
8 lines
169 B
Bash
Executable File
8 lines
169 B
Bash
Executable File
#!/bin/sh
|
|
set -euxo pipefail
|
|
|
|
if [ -f ${SRC_PKG}/requirements.txt ]
|
|
then
|
|
pip3 install -r ${SRC_PKG}/requirements.txt -t ${SRC_PKG}
|
|
fi
|
|
cp -r ${SRC_PKG} ${DEPLOY_PKG} |