-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ecd207b
commit 49d46d8
Showing
6 changed files
with
94 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
echo '[charm] | ||
name=Charm | ||
baseurl=https://repo.charm.sh/yum/ | ||
enabled=1 | ||
gpgcheck=1 | ||
gpgkey=https://repo.charm.sh/yum/gpg.key' | sudo tee /etc/yum.repos.d/charm.repo | ||
sudo yum install gum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,57 @@ | ||
distro="" | ||
installer="" | ||
|
||
# Check for distro | ||
if [ -z "$1" ] ;then | ||
if [ -f /etc/fedora-release ] ;then | ||
distro="fedora" | ||
installer="fedora" | ||
fi | ||
if [ -f /etc/arch-release ] ;then | ||
distro="arch" | ||
installer="arch" | ||
fi | ||
if [ -f /etc/nobara-release ] ;then | ||
distro="nobara" | ||
installer="fedora" | ||
fi | ||
else | ||
if [[ "$1" == "nobara" ]]; then | ||
distro="nobara" | ||
installer="fedora" | ||
fi | ||
if [[ "$1" == "fedora" ]]; then | ||
distro="fedora" | ||
installer="fedora" | ||
fi | ||
if [[ "$1" == "arch" ]]; then | ||
distro="arch" | ||
installer="arch" | ||
fi | ||
fi | ||
|
||
# Select installer manually | ||
if [ -z $distro ] ;then | ||
echo "ERROR: Your Linux distribution is not supported." | ||
exit | ||
echo "ERROR: Your Linux distribution could not be detected or is not supported." | ||
echo | ||
echo "Please select one of the following installation profiles or cancel the installation." | ||
echo | ||
version=$(gum choose "arch" "fedora" "cancel") | ||
if [ "$version" == "arch" ] ;then | ||
echo ":: Installer for Arch" | ||
distro="arch" | ||
installer="arch" | ||
elif [ "$version" == "rolling-release" ] ;then | ||
echo ":: Installer for Fedora" | ||
distro="fedora" | ||
installer="fedora" | ||
elif [ "$version" == "cancel" ] ;then | ||
echo ":: Setup canceled" | ||
exit 130 | ||
else | ||
echo ":: Setup canceled" | ||
exit 130 | ||
fi | ||
fi | ||
|
||
echo "$distro" > dotfiles/.config/ml4w/settings/distro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters