Skip to content

Commit 63156aa

Browse files
committed
Fix a bug with the -b option
1 parent 1ff0c6a commit 63156aa

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Fixed
9+
- -b option wasn't honored
810

911
## [0.1.0] 2019-02-01
1012
### Added

src/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn generate_build_script(
8282
context.insert("delete_asset", &false);
8383
context.insert("asset_id", &0);
8484
}
85-
let script = match tera.render("build.sh", &context) {
85+
let script = match tera.render(opt.build_template.to_str().unwrap(), &context) {
8686
Ok(s) => s,
8787
Err(e) => {
8888
return Err(Error::from(BuildError::TeraTemplateRenderingErr {

templates/build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ if {{ upload }} ; then
5252
cargo install --path . -f
5353
tgt_dir="{{ os_family }}-{{ os_version }}-{{ project }}"
5454
tarball="{{ tarball }}"
55+
mkdir $tgt_dir
5556
mv $HOME/.cargo/bin/{{ project }} $tgt_dir
5657
tar zcf ${tarball} $tgt_dir
5758
if {{ delete_asset }} ; then

0 commit comments

Comments
 (0)