Updates
This commit is contained in:
31
scripts/installtimeshift.sh
Executable file
31
scripts/installtimeshift.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
# _____ _ _ _ __ _
|
||||
# |_ _(_)_ __ ___ ___ ___| |__ (_)/ _| |_
|
||||
# | | | | '_ ` _ \ / _ \/ __| '_ \| | |_| __|
|
||||
# | | | | | | | | | __/\__ \ | | | | _| |_
|
||||
# |_| |_|_| |_| |_|\___||___/_| |_|_|_| \__|
|
||||
#
|
||||
|
||||
sleep 1
|
||||
clear
|
||||
figlet "Timeshift"
|
||||
|
||||
_isInstalledYay() {
|
||||
package="$1";
|
||||
check="$(yay -Qs --color always "${package}" | grep "local" | grep "${package} ")";
|
||||
if [ -n "${check}" ] ; then
|
||||
echo 0; #'0' means 'true' in Bash
|
||||
return; #true
|
||||
fi;
|
||||
echo 1; #'1' means 'false' in Bash
|
||||
return; #false
|
||||
}
|
||||
|
||||
if [[ $(_isInstalledYay "timeshift") == "0" ]] ;then
|
||||
echo ":: Timeshift is already installed"
|
||||
sleep 3
|
||||
else
|
||||
if gum confirm "DO YOU WANT TO INSTALL Timeshift now?" ;then
|
||||
yay -S timeshift
|
||||
fi
|
||||
fi
|
||||
@@ -5,22 +5,14 @@
|
||||
# | || | | \__ \ || (_| | | | | |_| | |_) | (_| | (_| | || __/\__ \
|
||||
# |___|_| |_|___/\__\__,_|_|_| \___/| .__/ \__,_|\__,_|\__\___||___/
|
||||
# |_|
|
||||
# by Stephan Raabe (2023)
|
||||
# by Stephan Raabe (2024)
|
||||
# -----------------------------------------------------
|
||||
# Required: yay trizen timeshift btrfs-grub
|
||||
# -----------------------------------------------------
|
||||
|
||||
sleep 1
|
||||
clear
|
||||
|
||||
cat <<"EOF"
|
||||
_ _ _ _
|
||||
| | | |_ __ __| | __ _| |_ ___ ___
|
||||
| | | | '_ \ / _` |/ _` | __/ _ \/ __|
|
||||
| |_| | |_) | (_| | (_| | || __/\__ \
|
||||
\___/| .__/ \__,_|\__,_|\__\___||___/
|
||||
|_|
|
||||
|
||||
figlet "Updates"
|
||||
EOF
|
||||
|
||||
_isInstalledYay() {
|
||||
|
||||
@@ -15,4 +15,4 @@ if [ -f ~/dotfiles/.settings/terminal.sh ]; then
|
||||
else
|
||||
echo "ERROR: ~/dotfiles/.settings/terminal.sh not found"
|
||||
fi
|
||||
sleep 3
|
||||
sleep 3
|
||||
Reference in New Issue
Block a user