Skip to content

Commit ee4a4e8

Browse files
committed
add .editorconfig and apply formatting
1 parent 5b4bc58 commit ee4a4e8

4 files changed

Lines changed: 28 additions & 15 deletions

File tree

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.{yml,yaml}]
11+
indent_style = space
12+
indent_size = 2
13+

distro_installers/arch-gaming.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fi
9797

9898
# setting os-release
9999
ID="unknown"
100-
if [ -f /etc/os-release ] ; then
100+
if [ -f /etc/os-release ] ; then
101101
# shellcheck disable=SC1091
102102
source /etc/os-release
103103
fi
@@ -189,7 +189,7 @@ if [ -d "${workdir}/../general" ] && [ -f "${workdir}/../general/btrfs-tuning.sh
189189
echo "### if you see one error (per user) regarding to an steam folder, this can be ignored"
190190
fi
191191

192-
# shellcheck disable=SC2086
192+
# shellcheck disable=SC2086
193193
pacman -Syyu ${installer_addition}
194194

195195

distro_installers/autoinstall.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ for arg in "$@" ; do
2020
installer_arguments="${installer_arguments} nodiscord"
2121
elif [[ "$arg" = "nogamemode" ]] ; then
2222
installer_arguments="${installer_arguments} nogamemode"
23-
elif [[ "$arg" = "nvidia" ]] ; then
23+
elif [[ "$arg" = "nvidia" ]] ; then
2424
installer_arguments="${installer_arguments} nvidia"
2525
elif [[ "$arg" = "amd" ]] ; then
2626
installer_arguments="${installer_arguments} amd"
@@ -36,15 +36,15 @@ for arg in "$@" ; do
3636
echo "nomumble - don't install Mumble"
3737
echo "nodiscord - don't install Discord"
3838
echo "nogamemode - don't install Gamemode"
39-
echo "nvidia - force installation of nvidia drivers"
39+
echo "nvidia - force installation of nvidia drivers"
4040
echo "amd - force installation of amd drivers"
4141
echo "intel - force installation of intel drivers"
4242

4343
exit
4444
fi
4545
done
4646

47-
if [ -f /etc/os-release ] ; then
47+
if [ -f /etc/os-release ] ; then
4848
# shellcheck disable=SC1091
4949
source /etc/os-release
5050
if [ "${ID}" = "manjaro" ] ; then
@@ -72,12 +72,12 @@ if [ -f /etc/os-release ] ; then
7272
fi
7373
distroinstaller="ubuntu"
7474
fi
75-
elif [ -f /usr/lib/os-release ] ; then
75+
elif [ -f /usr/lib/os-release ] ; then
7676
# shellcheck disable=SC1091
7777
source /usr/lib/os-release
7878
if [ "${ID}" = "artix" ] ; then
7979
distrodetect="Artix Linux"
80-
distroinstaller="arch"
80+
distroinstaller="arch"
8181
fi
8282
fi
8383

distro_installers/ubuntu-gaming.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ nvidia_allowupdate="true"
2626
for arg in "$@" ; do
2727
if [[ "$arg" = "--force" || "$arg" = "-f" ]] ; then
2828
option_noconfirm="true"
29-
# elif [[ "$arg" = "nolutris" ]] ; then
30-
# lutris_install="false"
29+
# elif [[ "$arg" = "nolutris" ]] ; then
30+
# lutris_install="false"
3131
elif [[ "$arg" = "nosteam" ]] ; then
3232
steam_install="false"
3333
elif [[ "$arg" = "nowinetricks" ]] ; then
@@ -49,7 +49,7 @@ for arg in "$@" ; do
4949
elif [[ "$arg" = "--help" || "$arg" = "-h" ]] ; then
5050
echo "usage: ./ubuntu-gaming.sh [OPTIONS]"
5151
echo "--force - no questions while installing / uninstalling packages - this might break your system"
52-
# echo "nolutris - don't install Lutris"
52+
# echo "nolutris - don't install Lutris"
5353
echo "nosteam - don't install Steam"
5454
echo "nowinetricks - don't install Winetricks"
5555
echo "nots3 - don't install Teamspeak3"
@@ -69,7 +69,7 @@ if [ "$(grep -P '^NAME=\"Pop\!' /etc/os-release -c)" = "1" ] ; then
6969
exit
7070
fi
7171

72-
# load os-release variables
72+
# load os-release variables
7373
# shellcheck disable=SC1091
7474
source /etc/os-release
7575

@@ -113,7 +113,7 @@ if [ "${mumble_install}" = "true" ] ; then
113113
pkg_additional_install="${pkg_additional_install}mumble "
114114
fi
115115
if [ "${gamemode_install}" = "true" ] ; then
116-
pkg_additional_install="${pkg_additional_install}gamemode "
116+
pkg_additional_install="${pkg_additional_install}gamemode "
117117
fi
118118

119119
apt update && apt upgrade ${installer_addition}
@@ -204,9 +204,9 @@ fi
204204
if [ "${nvidia_install}" = "true" ] ; then
205205
if [ ! -f "/etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-${UBUNTU_CODENAME}.list" ] ; then
206206
echo "### adding ubuntu's GPU Drivers PPA, press ENTER to confirm"
207-
add-apt-repository ppa:graphics-drivers/ppa ${installer_addition}
208-
echo "### updating repositories for the new ppa"
209-
apt update
207+
add-apt-repository ppa:graphics-drivers/ppa ${installer_addition}
208+
echo "### updating repositories for the new ppa"
209+
apt update
210210
else
211211
echo "### graphics-drivers ppa already installed, skipping"
212212
fi

0 commit comments

Comments
 (0)