Skip to content

Commit

Permalink
New patch release
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Aug 15, 2023
1 parent 0e5efd6 commit 79c7b05
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "in"
version = "1.7.0"
version = "1.7.1"
authors = ["Alexander F. Rødseth <xyproto@archlinux.org>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ Manual installation, using `git`, `rust`, `sudo` and `install`:

## General info

* Version: 1.7.0
* Version: 1.7.1
* License: BSD-3
* Author: Alexander F. Rødseth &lt;xyproto@archlinux.org&gt;
2 changes: 1 addition & 1 deletion in.1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Run the given command in the given directory, creating the directory if needed.
If the top directory is empty after running the command, remove it.
.sp
.SH VERSION
1.7.0
1.7.1
.SH BUGS
No known bugs so far. Issues can be reported at: https://github.com/xyproto/in/issues
.SH AUTHOR
Expand Down
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ fn run_command_in_dir(
command_parts: &[&str],
) -> Result<(), Box<dyn std::error::Error>> {
info!("Running command in directory: {:?}", dir);

let dir_str = dir.to_str().unwrap_or_default();
let status = Command::new(command_parts[0])
.args(&command_parts[1..])
.current_dir(dir)
.env("PWD", dir_str)
.env("INDIR", dir_str)
.status()?;

if !status.success() {
Expand All @@ -77,7 +81,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();

let matches = App::new("in")
.version("1.7.0")
.version("1.7.1")
.author("Alexander F. Rødseth <xyproto@archlinux.org>")
.about("Utility to execute commands in directories, and create directories if needed.")
.arg(
Expand Down

0 comments on commit 79c7b05

Please sign in to comment.