mirror of
https://github.com/newnius/YAO-Dockerfiles.git
synced 2025-12-13 01:26:44 +00:00
update
This commit is contained in:
@@ -2,13 +2,16 @@
|
||||
|
||||
if ! [[ -z "${repo}" ]]; then
|
||||
if [[ -z "${branch}" ]]; then
|
||||
git clone $repo workspace
|
||||
git clone $repo /workspace
|
||||
else
|
||||
git clone -b $branch $repo /workspace
|
||||
fi
|
||||
fi
|
||||
|
||||
cd /workspace
|
||||
if [ -d /workspace ]; then
|
||||
cd /workspace
|
||||
fi
|
||||
|
||||
$@
|
||||
# use eval because commands likes `key=value command` would cause file not found error when using $@, but this eval will ruin current environment
|
||||
eval $@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user