summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-18 09:49:26 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-18 09:49:26 +0100
commitc51225577b077401de0b5e79d8b288019e5bb44d (patch)
treec8745f57c8660360d6e207356a9471bdf8ce7ac8
parentdd8fb524df765dc000991b19d18bd2dec44a9d5e (diff)
.gitcheck: use subshells where appropriate
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-x.gitcheck6
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitcheck b/.gitcheck
index 2973342c..d2868b63 100755
--- a/.gitcheck
+++ b/.gitcheck
@@ -29,9 +29,10 @@ set_placeholders()
if [ ! -d "${x}" ]; then
continue
fi
+ (
cd "${x}"
set_git_credentials
- cd -
+ )
done
}
@@ -57,9 +58,10 @@ clean()
if [ ! -d "${x}" ]; then
continue
fi
+ (
cd "${x}"
unset_placeholders
- cd -
+ )
done
}