prevents rm for sending error code 1
This commit is contained in:
parent
29b4703b20
commit
b925c66c23
2 changed files with 9 additions and 9 deletions
10
arch.sh
10
arch.sh
|
@ -42,7 +42,7 @@ main() {
|
||||||
makepkg -si --noconfirm
|
makepkg -si --noconfirm
|
||||||
# Remove folder
|
# Remove folder
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf paru
|
rm -rf paru ||:
|
||||||
paru --gendb
|
paru --gendb
|
||||||
# Clean files used for compilation
|
# Clean files used for compilation
|
||||||
sudo sed -i "s/#CleanAfter/CleanAfter/g" /etc/paru.conf
|
sudo sed -i "s/#CleanAfter/CleanAfter/g" /etc/paru.conf
|
||||||
|
@ -85,7 +85,7 @@ main() {
|
||||||
# Fish theme
|
# Fish theme
|
||||||
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
|
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
|
||||||
# Fish prompt
|
# 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/
|
wget -q ${repo}/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/
|
||||||
# EZA colors
|
# EZA colors
|
||||||
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
|
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
|
||||||
|
@ -136,7 +136,7 @@ main() {
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf GL4Dummies
|
rm -rf GL4Dummies ||:
|
||||||
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
# Add to path
|
# Add to path
|
||||||
|
@ -170,7 +170,7 @@ main() {
|
||||||
|
|
||||||
# === Flameshot ==
|
# === Flameshot ==
|
||||||
# Custom configuration
|
# 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/
|
wget -q --show-progress ${repo}/.config/flameshot/flameshot.ini -P "$HOME"/.config/flameshot/
|
||||||
# Change keybindings
|
# Change keybindings
|
||||||
gsettings set org.gnome.shell.keybindings show-screenshot-ui "[]"
|
gsettings set org.gnome.shell.keybindings show-screenshot-ui "[]"
|
||||||
|
@ -189,7 +189,7 @@ main() {
|
||||||
|
|
||||||
# === Emoji picker ==
|
# === Emoji picker ==
|
||||||
# Custom configuration
|
# 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/
|
wget -q --show-progress ${repo}/.config/gazatu.xyz/emoji-picker.ini -P "$HOME"/.config/gazatu.xyz/
|
||||||
# Add keybinding
|
# Add keybinding
|
||||||
custom_keybindings_list=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings)
|
custom_keybindings_list=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings)
|
||||||
|
|
|
@ -61,7 +61,7 @@ main() {
|
||||||
makepkg -si --noconfirm
|
makepkg -si --noconfirm
|
||||||
# Remove folder
|
# Remove folder
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf paru
|
rm -rf paru ||:
|
||||||
paru --gendb
|
paru --gendb
|
||||||
# Clean files used for compilation
|
# Clean files used for compilation
|
||||||
sudo sed -i "s/#CleanAfter/CleanAfter/g" /etc/paru.conf
|
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
|
curl -so PKGBUILD https://raw.githubusercontent.com/sorah/arch.sorah.jp/master/aur-sorah/PKGBUILDs/subsystemctl/PKGBUILD
|
||||||
makepkg -si --noconfirm
|
makepkg -si --noconfirm
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf subsystemctl
|
rm -rf subsystemctl ||:
|
||||||
sudo subsystemctl start
|
sudo subsystemctl start
|
||||||
|
|
||||||
# === Locales ==
|
# === Locales ==
|
||||||
|
@ -110,7 +110,7 @@ main() {
|
||||||
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
|
fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save"
|
||||||
fish -c "set fish_color_comment 5c6773" # custom comment color
|
fish -c "set fish_color_comment 5c6773" # custom comment color
|
||||||
# Fish prompt
|
# 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/
|
wget -q ${repo}/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/
|
||||||
# EZA colors
|
# EZA colors
|
||||||
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
|
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
|
||||||
|
@ -137,7 +137,7 @@ main() {
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf GL4Dummies
|
rm -rf GL4Dummies ||:
|
||||||
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
# Add to path
|
# Add to path
|
||||||
|
|
Loading…
Reference in a new issue