Fix shellcheck warnings in shell scripts.

This commit is contained in:
Dan Gohman
2018-06-11 13:48:35 -07:00
parent c03d67a4ff
commit 967da59181
6 changed files with 24 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
set -euo pipefail
cd $(dirname "$0")
topdir="$(pwd)"
topdir=$(dirname "$0")
cd "$topdir"
# All the cretonne-* crates have the same version number
version="0.9.0"
@@ -28,12 +28,6 @@ cargo update
echo git commit -a -m "\"Bump version to $version"\"
echo git push
for crate in entity codegen frontend native reader wasm module simplejit faerie umbrella ; do
if [ "$crate" == "umbrella" ]; then
dir="cretonne"
else
dir="$crate"
fi
echo cargo publish --manifest-path "lib/$crate/Cargo.toml"
done
echo