mirror of
https://github.com/isar/rusqlite.git
synced 2025-01-20 03:30:51 +08:00
Fix shell scripts
Replace `$_` by `$0` because `$_` doesn't work when using `sh upgrade.sh`. Replace `bash` by `sh` because we should not depend on bash. And also remove unused `CUR_DIR` variable.
This commit is contained in:
parent
6f8174b614
commit
897ef9cf25
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
SCRIPT_DIR=$(cd "$(dirname "$_")" && pwd)
|
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
|
||||||
CUR_DIR=$(pwd -P)
|
|
||||||
echo "$SCRIPT_DIR"
|
echo "$SCRIPT_DIR"
|
||||||
cd "$SCRIPT_DIR" || { echo "fatal error" >&2; exit 1; }
|
cd "$SCRIPT_DIR" || { echo "fatal error" >&2; exit 1; }
|
||||||
cargo clean
|
cargo clean
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
SCRIPT_DIR=$(cd "$(dirname "$_")" && pwd)
|
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
|
||||||
CUR_DIR=$(pwd -P)
|
|
||||||
echo "$SCRIPT_DIR"
|
echo "$SCRIPT_DIR"
|
||||||
cd "$SCRIPT_DIR" || { echo "fatal error" >&2; exit 1; }
|
cd "$SCRIPT_DIR" || { echo "fatal error" >&2; exit 1; }
|
||||||
cargo clean
|
cargo clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user