prevents rm for sending error code 1

This commit is contained in:
Mylloon 2023-11-05 21:32:41 +01:00
parent 29b4703b20
commit b925c66c23
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 9 additions and 9 deletions

10
arch.sh
View file

@ -42,7 +42,7 @@ main() {
makepkg -si --noconfirm
# Remove folder
cd ..
rm -rf paru
rm -rf paru ||:
paru --gendb
# Clean files used for compilation
sudo sed -i "s/#CleanAfter/CleanAfter/g" /etc/paru.conf
@ -85,7 +85,7 @@ main() {
# Fish theme
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
# Fish prompt
rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null
rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null ||:
wget -q ${repo}/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/
# EZA colors
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
@ -136,7 +136,7 @@ main() {
make
sudo make install
cd ..
rm -rf GL4Dummies
rm -rf GL4Dummies ||:
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
sudo ldconfig
# Add to path
@ -170,7 +170,7 @@ main() {
# === Flameshot ==
# Custom configuration
rm "$HOME"/.config/flameshot/flameshot.ini 2> /dev/null
rm "$HOME"/.config/flameshot/flameshot.ini 2> /dev/null ||:
wget -q --show-progress ${repo}/.config/flameshot/flameshot.ini -P "$HOME"/.config/flameshot/
# Change keybindings
gsettings set org.gnome.shell.keybindings show-screenshot-ui "[]"
@ -189,7 +189,7 @@ main() {
# === Emoji picker ==
# Custom configuration
rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null
rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null ||:
wget -q --show-progress ${repo}/.config/gazatu.xyz/emoji-picker.ini -P "$HOME"/.config/gazatu.xyz/
# Add keybinding
custom_keybindings_list=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings)

View file

@ -61,7 +61,7 @@ main() {
makepkg -si --noconfirm
# Remove folder
cd ..
rm -rf paru
rm -rf paru ||:
paru --gendb
# Clean files used for compilation
sudo sed -i "s/#CleanAfter/CleanAfter/g" /etc/paru.conf
@ -83,7 +83,7 @@ main() {
curl -so PKGBUILD https://raw.githubusercontent.com/sorah/arch.sorah.jp/master/aur-sorah/PKGBUILDs/subsystemctl/PKGBUILD
makepkg -si --noconfirm
cd ..
rm -rf subsystemctl
rm -rf subsystemctl ||:
sudo subsystemctl start
# === Locales ==
@ -110,7 +110,7 @@ main() {
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
fish -c "set fish_color_comment 5c6773" # custom comment color
# Fish prompt
rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null
rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null ||:
wget -q ${repo}/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/
# EZA colors
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
@ -137,7 +137,7 @@ main() {
make
sudo make install
cd ..
rm -rf GL4Dummies
rm -rf GL4Dummies ||:
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
sudo ldconfig
# Add to path