Merge pull request #22 from louis-vinchon/setup-script-permissions-fix

Update: Add umask 022.
This commit is contained in:
Keyitdev
2025-02-13 00:52:36 +01:00
committed by GitHub
+2
View File
@@ -34,12 +34,14 @@ install_dependencies(){
}
git_clone(){
umask 022
echo -e "${green}[*] Cloning theme to $path_to_git_clone.${no_color}"
[ -d "$path_to_git_clone"/sddm-astronaut-theme ] && sudo mv "$path_to_git_clone"/sddm-astronaut-theme "$path_to_git_clone"/sddm-astronaut-theme_$date && echo -e "${green}[*] Old configs detected in $path_to_git_clone, backing up.${no_color}"
git clone -b master --depth 1 https://github.com/keyitdev/sddm-astronaut-theme.git "$path_to_git_clone"/sddm-astronaut-theme
}
copy_files(){
umask 022
echo -e "${green}[*] Coping theme from $path_to_git_clone to /usr/share/sddm/themes/.${no_color}"
[ -d /usr/share/sddm/themes/sddm-astronaut-theme ] && sudo mv /usr/share/sddm/themes/sddm-astronaut-theme /usr/share/sddm/themes/sddm-astronaut-theme_$date && echo -e "${green}[*] Old configs detected in /usr/share/sddm/themes/sddm-astronaut-theme, backing up.${no_color}"
sudo mkdir -p /usr/share/sddm/themes/sddm-astronaut-theme