mirror of
https://gitlab.com/dabruh/dotfiles.git
synced 2024-12-25 19:44:17 +01:00
Don't fail if file exists already
This commit is contained in:
parent
d1c9475692
commit
a5db9cdc9a
1 changed files with 3 additions and 2 deletions
|
@ -103,6 +103,7 @@ function configure_sddm() {
|
|||
|
||||
echo "Setting up '$theme_dir'."
|
||||
[ -f "$theme_user_config" ] && sudo mv "$theme_user_config" "$theme_user_config.disabled"
|
||||
return 0
|
||||
}
|
||||
|
||||
function configure_ufw() {
|
||||
|
@ -310,9 +311,9 @@ ID_LIKE="$(grep ID_LIKE= </etc/os-release | cut -d= -f2)"
|
|||
echo "Setting up ${ID_LIKE^:?}-like OS."
|
||||
|
||||
if [[ "$ID_LIKE" == "arch" ]]; then
|
||||
setup_arch
|
||||
setup_arch || echo "Setup failed: $?"
|
||||
elif [[ "$ID_LIKE" == "debian" ]]; then
|
||||
setup_debian
|
||||
setup_debian || echo "Setup failed: $?"
|
||||
else
|
||||
echo "ERROR: Unsupported system: ID_LIKE=$ID_LIKE"
|
||||
exit 2
|
||||
|
|
Loading…
Reference in a new issue