mirror of
https://github.com/clap-rs/clap
synced 2024-11-14 00:27:13 +00:00
Fixed Makefile typo
This commit is contained in:
parent
3f134896f8
commit
b84a9df863
1 changed files with 3 additions and 3 deletions
|
@ -10,11 +10,11 @@ test:
|
|||
cp Cargo.toml cargo.bak
|
||||
read -p "fork url: " FORK
|
||||
read -p "branch [master]: " BRANCH
|
||||
sed -e "s/^\#FORK/$FORK" cargo.bak > Cargo.toml
|
||||
sed -e "s/^\#FORK/git=\"$FORK\"/" cargo.bak > Cargo.toml
|
||||
if [ "$BRANCH" == "" ]; then
|
||||
sed -i "s/^\#BRANCH/master/" Cargo.toml
|
||||
sed -i "s/^\#BRANCH/branch=\"master\"/" Cargo.toml
|
||||
else
|
||||
sed -i "s/^\#BRNACH/$BRANCH/" Cargo.toml
|
||||
sed -i "s/^\#BRNACH/branch=\"$BRANCH\"/" Cargo.toml
|
||||
fi
|
||||
(make clean) || (make clean && false)
|
||||
(make build) || (make clean && false)
|
||||
|
|
Loading…
Reference in a new issue