зеркало из https://github.com/mozilla/bedrock.git
Safer bin/jenkins.sh
If someone runs bin/jenkins.sh without first setting $WORKSPACE, don't cd to their home directory and start rampaging around. Just use the current directory.
This commit is contained in:
Родитель
b0d2107b7d
Коммит
3c0626e2e3
|
@ -7,6 +7,10 @@
|
||||||
# codebase.
|
# codebase.
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if [ -z $WORKSPACE ] ; then
|
||||||
|
WORKSPACE=`/bin/pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
VENV=$WORKSPACE/venv
|
VENV=$WORKSPACE/venv
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче