Replace unnecessary cd calls

This commit is contained in:
Manuel Thalmann 2023-03-16 20:17:15 +01:00
parent 80df02ac3e
commit aec63bb2d5
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ else
popd > /dev/null;
git clone https://aur.archlinux.org/ttf-ms-win11-auto.git ttf-win11;
cd ttf-win11;
pushd ttf-win11 > /dev/null;
# shellcheck source=/dev/null
source ./PKGBUILD;
prepare;
@ -23,7 +23,7 @@ else
rm -f /usr/local/bin/httpdirfs;
cd "$tempDir";
popd > /dev/null;
wget -O CascadiaCode.zip https://github.com/microsoft/cascadia-code/releases/download/v2111.01/CascadiaCode-2111.01.zip;
unzip -d . CascadiaCode.zip;
cp ttf/* /usr/share/fonts/TTF;

View file

@ -5,7 +5,7 @@ then
sudo bash "$BASH_SOURCE";
else
contextRoot="$(mktemp -d)";
cd "$contextRoot";
pushd "$contextRoot" > /dev/null;
# Preview from docker container
# container_id="$(docker create woodpeckerci/woodpecker-cli:next)"