Updates
This commit is contained in:
parent
97aa0af0a7
commit
2741a595d0
@ -51,6 +51,7 @@ packagesPacman=(
|
|||||||
"xdg-desktop-portal"
|
"xdg-desktop-portal"
|
||||||
"qalculate-gtk"
|
"qalculate-gtk"
|
||||||
"imagemagick"
|
"imagemagick"
|
||||||
|
"guvcview"
|
||||||
);
|
);
|
||||||
|
|
||||||
packagesYay=(
|
packagesYay=(
|
||||||
|
14
update.sh
14
update.sh
@ -9,7 +9,10 @@
|
|||||||
clear
|
clear
|
||||||
sleep 1
|
sleep 1
|
||||||
figlet "Update"
|
figlet "Update"
|
||||||
echo
|
if [ ! -d $HOME/Downloads ] ;then
|
||||||
|
echo "ERROR:: $HOME/Downloads folder not found."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
if gum confirm "Do you want to start the update now?" ;then
|
if gum confirm "Do you want to start the update now?" ;then
|
||||||
|
|
||||||
# Remove existing download folder and zip files
|
# Remove existing download folder and zip files
|
||||||
@ -31,11 +34,10 @@ if gum confirm "Do you want to start the update now?" ;then
|
|||||||
if [ -d $HOME/Downloads/dotfiles-dev ] ;then
|
if [ -d $HOME/Downloads/dotfiles-dev ] ;then
|
||||||
rm -rf $HOME/Downloads/dotfiles-dev
|
rm -rf $HOME/Downloads/dotfiles-dev
|
||||||
fi
|
fi
|
||||||
|
echo
|
||||||
echo "Please choose between the main-release or the rolling-release:"
|
echo "Please choose between the main-release or the rolling-release (development version):"
|
||||||
version=$(gum choose "main-release" "rolling-release")
|
version=$(gum choose "main-release" "rolling-release")
|
||||||
if [ "$version" == "main-release" ] ;then
|
if [ "$version" == "main-release" ] ;then
|
||||||
# Download dotfiles zip into ~/Downloads
|
|
||||||
wget -P ~/Downloads/ https://gitlab.com/stephan-raabe/dotfiles/-/archive/main/dotfiles-main.zip
|
wget -P ~/Downloads/ https://gitlab.com/stephan-raabe/dotfiles/-/archive/main/dotfiles-main.zip
|
||||||
v="main"
|
v="main"
|
||||||
elif [ "$version" == "rolling-release" ] ;then
|
elif [ "$version" == "rolling-release" ] ;then
|
||||||
@ -45,12 +47,12 @@ if gum confirm "Do you want to start the update now?" ;then
|
|||||||
exit 130
|
exit 130
|
||||||
fi
|
fi
|
||||||
echo ":: Download complete."
|
echo ":: Download complete."
|
||||||
echo ""
|
|
||||||
|
|
||||||
# Unzip
|
# Unzip
|
||||||
unzip -o ~/Downloads/dotfiles-$v.zip -d ~/Downloads/
|
unzip -o -q ~/Downloads/dotfiles-$v.zip -d ~/Downloads/
|
||||||
echo ":: Unzip complete."
|
echo ":: Unzip complete."
|
||||||
cd ~/Downloads/dotfiles-$v/
|
cd ~/Downloads/dotfiles-$v/
|
||||||
|
echo ":: Changed into ~/Downloads/dotfiles-$v/"
|
||||||
|
|
||||||
# Start the installatiom
|
# Start the installatiom
|
||||||
if gum confirm "Do you want to start the update now?" ;then
|
if gum confirm "Do you want to start the update now?" ;then
|
||||||
|
Loading…
Reference in New Issue
Block a user