mirror of
https://github.com/isar/rusqlite.git
synced 2025-01-20 01:00:52 +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)
|
||||
CUR_DIR=$(pwd -P)
|
||||
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
|
||||
echo "$SCRIPT_DIR"
|
||||
cd "$SCRIPT_DIR" || { echo "fatal error" >&2; exit 1; }
|
||||
cargo clean
|
||||
|
@ -1,7 +1,6 @@
|
||||
#!/bin/bash -e
|
||||
#!/bin/sh -e
|
||||
|
||||
SCRIPT_DIR=$(cd "$(dirname "$_")" && pwd)
|
||||
CUR_DIR=$(pwd -P)
|
||||
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
|
||||
echo "$SCRIPT_DIR"
|
||||
cd "$SCRIPT_DIR" || { echo "fatal error" >&2; exit 1; }
|
||||
cargo clean
|
||||
|
Loading…
x
Reference in New Issue
Block a user