Replace unnecessary cd calls

This commit is contained in:
Manuel Thalmann 2023-03-16 20:17:15 +01:00
parent 9c124386c3
commit 54ba34d8fe
2 changed files with 3 additions and 3 deletions

View file

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

View file

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