1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-08-30 22:48:11 +02:00

move tmux config into tmux subdirectory

This commit is contained in:
Henrik Hautakoski 2025-10-29 01:28:14 +01:00
parent 4d3bd82df5
commit 3fdbb1f17a
42 changed files with 5 additions and 6 deletions

View file

@ -0,0 +1,13 @@
check_dir_exists_helper() {
[ -d "$1" ]
}
# runs the scripts and asserts it has the correct output and exit code
script_run_helper() {
local script="$1"
local expected_output="$2"
local expected_exit_code="${3:-0}"
$script 2>&1 |
grep "$expected_output" >/dev/null 2>&1 && # grep -q flag quits the script early
[ "${PIPESTATUS[0]}" -eq "$expected_exit_code" ]
}