Create a script that sets the working directory for a process

This commit is contained in:
Ohad Livne 2025-07-02 13:15:07 +03:00
parent 7764a351ab
commit 8f4b3a5464
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

7
.local/bin/with-cwd Executable file
View file

@ -0,0 +1,7 @@
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
cd "$1"
"${@:2}"