Mute output of pushd and popd commands

This commit is contained in:
Manuel Thalmann 2023-03-16 20:14:49 +01:00
parent c7b345c034
commit b2d7433487
19 changed files with 43 additions and 43 deletions
scripts/Software
Collections
JetBrains
Oh My Posh
Python
Virtual Machine Manager
Woodpecker CLI
git
tea

View file

@ -1,5 +1,5 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}";
pushd "${BASH_SOURCE%/*}" > /dev/null;
scriptRoot="$dir/../..";
utilRoot="$scriptRoot/Scripts";
deviceRoot="$scriptRoot/Devices";
@ -39,4 +39,4 @@ flatpak install -y flathub com.github.wwmm.easyeffects;
flatpak install -y flathub ch.threema.threema-web-desktop;
flatpak install -y flathub app.ytmdesktop.ytmdesktop;
flatpak install -y flathub com.github.tchx84.Flatseal;
popd;
popd > /dev/null;

View file

@ -1,5 +1,5 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}";
pushd "${BASH_SOURCE%/*}" > /dev/null;
source "./personal.sh";
source "../Java/install.sh";
@ -8,4 +8,4 @@ source "../cloudflared/install.sh";
# Install other flatpaks
flatpak install -y flathub com.github.xournalpp.xournalpp;
flatpak install -y flathub com.github.flxzt.rnote;
popd;
popd > /dev/null;

View file

@ -5,12 +5,12 @@ then
sudo bash "$BASH_SOURCE";
else
contextRoot="$(mktemp -d)";
pushd "$contextRoot";
pushd "$contextRoot" > /dev/null;
curl -fsSL https://raw.githubusercontent.com/nagygergo/jetbrains-toolbox-install/1.1/jetbrains-toolbox.sh \
| bash;
popd;
popd > /dev/null;
rm -rf "$contextRoot";
{

View file

@ -6,12 +6,12 @@ then
else
bin=oh-my-posh;
contextRoot="$(mktemp -d)";
pushd "$contextRoot";
pushd "$contextRoot" > /dev/null;
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O "$bin";
install "$bin" /usr/local/bin;
popd;
popd > /dev/null;
rm -rf "$contextRoot";
homeDir="$(sudo -u "$1" bash -c 'realpath ~')";

View file

@ -1,5 +1,5 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}";
pushd "${BASH_SOURCE%/*}" > /dev/null;
source "./setup.sh";
source "./pyenv.sh";
popd;
popd > /dev/null;

View file

@ -1,11 +1,11 @@
#!/bin/bash
contextRoot="$(mktemp -d)";
pushd "$contextRoot";
pushd "$contextRoot" > /dev/null;
sudo apt install -y swtpm swtpm-tools lxc libvirt-daemon-driver-lxc libvirt-daemon-system virt-manager;
sudo apt install -y python3 python-is-python3 python3-guestfs python3-passlib;
git clone https://github.com/virt-manager/virt-bootstrap;
cd virt-bootstrap;
sudo python setup.py install;
popd;
popd > /dev/null;
rm -rf "$contextRoot";

View file

@ -18,6 +18,6 @@ else
tar -xvzf woodpecker-cli.tar.gz;
install woodpecker-cli /usr/local/bin;
popd;
popd > /dev/null;
rm -rf "$contextRoot";
fi

View file

@ -1,5 +1,5 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}";
pushd "${BASH_SOURCE%/*}" > /dev/null;
source "./flow.sh";
source "./lfs.sh";
popd;
popd > /dev/null;

View file

@ -5,11 +5,11 @@ then
sudo bash "$BASH_SOURCE";
else
contextRoot="$(mktemp -d)";
pushd "$contextRoot";
pushd "$contextRoot" > /dev/null;
wget https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64 -O tea;
install tea /usr/local/bin;
popd;
popd > /dev/null;
rm -rf "$contextRoot";
fi