Allow ../../do.sh build <program> (#576)

This commit is contained in:
Justin Starry 2020-10-08 12:34:20 +08:00 committed by GitHub
parent a7b121074d
commit 451452feac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

7
do.sh
View File

@ -40,7 +40,12 @@ readCargoVariable() {
perform_action() {
set -e
projectDir="$CALLER_PWD"/$2
# Use relative path if arg starts with "."
if [[ $2 == .* ]]; then
projectDir="$CALLER_PWD"/$2
else
projectDir="$PWD"/$2
fi
targetDir="$PWD"/target
features=