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

View file

@ -1,5 +1,5 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}";
pushd "${BASH_SOURCE%/*}" > /dev/null;
# Set Hostname
sudo hostnamectl set-hostname ManuSurface;
@ -13,4 +13,4 @@ source "../../scripts/Config/UserProfile/school.sh";
source "../../scripts/Config/EasyEffects/SurfaceBook2/install.sh";
source "../../scripts/Scripts/postinstall.sh";
popd;
popd > /dev/null;

View file

@ -1,5 +1,5 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}";
pushd "${BASH_SOURCE%/*}" > /dev/null;
# Set Hostname
sudo hostnamectl set-hostname ManuPopOSLive;
@ -9,4 +9,4 @@ source "../../scripts/Software/Collections/personal.sh";
source "../../scripts/Config/UserProfile/personal.sh";
source "../../scripts/Scripts/postinstall.sh";
popd;
popd > /dev/null;

View file

@ -6,13 +6,13 @@ then
else
apt install -y p7zip-full libgumbo-dev libexpat1-dev libfuse-dev libssl-dev libcurl4-openssl-dev uuid-dev;
tempDir="$(mktemp -d)";
pushd "$tempDir";
pushd "$tempDir" > /dev/null;
git clone https://github.com/fangfufu/httpdirfs.git;
pushd httpdirfs;
pushd httpdirfs > /dev/null;
make;
install -m 755 -D httpdirfs /usr/local/bin/httpdirfs;
popd;
popd > /dev/null;
git clone https://aur.archlinux.org/ttf-ms-win11-auto.git ttf-win11;
cd ttf-win11;
@ -28,5 +28,5 @@ else
unzip -d . CascadiaCode.zip;
cp ttf/* /usr/share/fonts/TTF;
popd;
popd > /dev/null;
fi

View file

@ -2,13 +2,13 @@
commandName=gnome-shell-extension-installer;
extensionLocation=/usr/share/gnome-shell/extensions;
contextRoot="$(mktemp -d)";
pushd "$contextRoot";
pushd "$contextRoot" > /dev/null;
sudo apt install -y jq;
wget -O "$commandName" "https://github.com/brunelli/gnome-shell-extension-installer/raw/master/gnome-shell-extension-installer";
sudo install "$commandName" /usr/local/bin;
popd;
popd > /dev/null;
rm -rf "$contextRoot";
uuids=();
@ -16,7 +16,7 @@ for id in 779 4907 1162
do
contextRoot="$(mktemp -d)";
unzipLocation="$(mktemp -d)";
pushd "$contextRoot";
pushd "$contextRoot" > /dev/null;
gnome-shell-extension-installer "$id" --no-install;
sudo gnome-shell-extension-installer "$id" --yes;
@ -27,7 +27,7 @@ do
sudo chmod -R +r "$extensionLocation/$uuid";
popd;
popd > /dev/null;
rm -rf "$contextRoot";
done

View file

@ -1,6 +1,6 @@
#!/bin/bash
dir="${BASH_SOURCE%/*}";
pushd "$dir";
pushd "$dir" > /dev/null;
scriptRoot="$dir/../..";
softwareRoot="$scriptRoot/Software";
configRoot="$scriptRoot/Config";
@ -8,13 +8,13 @@ cloudRoot="$configRoot/rclone";
# Sync clouds
{
pushd "$dir";
pushd "$dir" > /dev/null;
gnome-terminal --tab --wait -- /bin/bash "../../Config/rclone/InstallSync.sh" nextcloud Nextcloud;
# Install fonts
source "../../Config/Fonts/NerdFont/install.sh";
source "../../Software/Oh My Posh/install.sh";
popd;
popd > /dev/null;
} &
# Microsoft Windows Fonts
@ -25,4 +25,4 @@ source "../../Config/git/setup/install.sh";
# Troll Stuff
source "../../Config/git/git-auf-deutsch/install.sh";
popd;
popd > /dev/null;

View file

@ -1,6 +1,6 @@
#!/bin/bash
# Install JetBrains Stuff
pushd "${BASH_SOURCE%/*}";
pushd "${BASH_SOURCE%/*}" > /dev/null;
source "./personal.sh";
source "../../Software/JetBrains/install-toolbox.sh";
popd;
popd > /dev/null;

View file

@ -1,5 +1,5 @@
contextRoot="$(mktemp -d)";
pushd "$contextRoot";
pushd "$contextRoot" > /dev/null;
sudo apt install -y \
build-essential meson ninja-build pkg-config libgnutls28-dev openssl \
@ -14,5 +14,5 @@ meson build -Dpipelines=uvcvideo,vimc,ipu3 -Dipas=vimc,ipu3 -Dprefix=/usr -Dgstr
ninja -C build;
sudo ninja -C build install;
popd;
popd > /dev/null;
rm -rf "$contextRoot";

View file

@ -10,7 +10,7 @@ else
# Create context directory
contextRoot="$(mktemp -d)";
packageName="shim.rpm";
pushd "$contextRoot";
pushd "$contextRoot" > /dev/null;
# Install Prerequisites
apt install -y wget rpm2cpio efitools;
@ -104,6 +104,6 @@ else
mokutil --import "$keyDir/MOK.der";
# Remove context directory
popd;
popd > /dev/null;
rm -rf "$contextRoot";
fi

View file

@ -1,8 +1,8 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}";
pushd "${BASH_SOURCE%/*}" > /dev/null;
# Install surface-linux
source "../../Surface/LinuxSurface/install.sh";
source "../../SurfaceBook2/Camera/install.sh";
# source "../../SurfaceBook2/SecureBoot/install.sh";
popd;
popd > /dev/null;

View file

@ -1,4 +1,4 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}";
pushd "${BASH_SOURCE%/*}" > /dev/null;
source "../../Config/GnomeExtensions/install.sh";
popd;
popd > /dev/null;

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