📃 fix(grub-theme): theme backup (#740)

* dir backup

* -

* suggestions by @nnyyxxxx

Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>

---------

Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
Adam Perkowski 2024-10-08 23:02:34 +02:00 committed by GitHub
parent cab73530fe
commit e6172ccec7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,8 +4,12 @@
themeinstall(){
mkdir -p "$HOME/.local/share"
cd "$HOME/.local/share" && git clone "https://github.com/ChrisTitusTech/Top-5-Bootloader-Themes"
cd "$HOME/.local/share/Top-5-Bootloader-Themes"
cd "$HOME/.local/share"
if [ -d 'Top-5-Bootloader-Themes' ]; then
rm -rf 'Top-5-Bootloader-Themes'
fi
git clone "https://github.com/ChrisTitusTech/Top-5-Bootloader-Themes"
cd "Top-5-Bootloader-Themes"
"$ESCALATION_TOOL" ./install.sh
}