Create a script that sets the working directory for a process
This commit is contained in:
parent
7764a351ab
commit
8f4b3a5464
1 changed files with 7 additions and 0 deletions
7
.local/bin/with-cwd
Executable file
7
.local/bin/with-cwd
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#! /usr/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
cd "$1"
|
||||||
|
"${@:2}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue