@@ -41,7 +41,7 @@ main() {
4141 exit 0
4242 ;;
4343 * )
44- echo " bifrost: Option '$1 ' not recognized\n"
44+ echo " bifrost: option '$1 ' not recognized\n"
4545 exit 1
4646 ;;
4747 esac ; shift
@@ -60,37 +60,37 @@ main() {
6060 ensure rm -rf " $BUILD_PATH /heimdall-rs"
6161
6262 cd $BUILD_PATH
63-
64- ensure git clone " https://github.com/Jon-Becker/heimdall-rs"
63+ echo " bifrost: cloning 'Jon-Becker/heimdall-rs'. "
64+ ensure git clone " https://github.com/Jon-Becker/heimdall-rs" > /dev/null 2>&1
6565
6666 cd " heimdall-rs"
6767
6868 ensure git fetch origin
6969
7070 # if they specified a version, use that
7171 if [ -n " $TARGET_VERSION " ]; then
72- echo " bifrost: Installing version $TARGET_VERSION ."
72+ echo " bifrost: installing version $TARGET_VERSION ."
7373
7474 ensure git checkout $TARGET_VERSION > /dev/null 2>&1
7575 else
7676
7777 # checkout the latest tag
7878 tag=$( git describe --tags ` git rev-list --tags --max-count=1` )
7979
80- echo " bifrost: Installing version $tag ."
80+ echo " bifrost: installing version $tag ."
8181 TARGET_VERSION=$tag
8282
8383 ensure git checkout $tag -b latest > /dev/null 2>&1
8484 fi
8585
8686 if [ -n " $USE_BINARY " ]; then
8787
88- echo " bifrost: Fetching binary."
88+ echo " bifrost: fetching binary."
8989
9090 ensure cd $BIFROST_BIN_DIR
91- ensure curl " https://github.com/Jon-Becker/heimdall-rs/releases/download/$TARGET_VERSION /heimdall" --output heimdall > /dev/null 2>&1
91+ ensure curl -k -L -s --compressed " https://github.com/Jon-Becker/heimdall-rs/releases/download/$TARGET_VERSION /heimdall" -o heimdall
9292
93- echo " bifrost: Installing binary."
93+ echo " bifrost: installing binary."
9494
9595 # make the binary executable
9696 ensure chmod +x heimdall
@@ -100,7 +100,7 @@ main() {
100100 RUSTFLAGS=" -C target-cpu=native" CARGO_PROFILE_RELEASE_LTO=true ensure cargo install --path ./heimdall --bins --locked --force --root $BIFROST_PATH
101101 fi
102102
103- echo " bifrost: Installation complete."
103+ echo " bifrost: installation complete."
104104}
105105
106106versions () {
0 commit comments