mirror of
https://github.com/Keyitdev/sddm-astronaut-theme.git
synced 2026-09-24 02:22:09 +00:00
Merge pull request #22 from louis-vinchon/setup-script-permissions-fix
Update: Add umask 022.
This commit is contained in:
@@ -34,12 +34,14 @@ install_dependencies(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
git_clone(){
|
git_clone(){
|
||||||
|
umask 022
|
||||||
echo -e "${green}[*] Cloning theme to $path_to_git_clone.${no_color}"
|
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}"
|
[ -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
|
git clone -b master --depth 1 https://github.com/keyitdev/sddm-astronaut-theme.git "$path_to_git_clone"/sddm-astronaut-theme
|
||||||
}
|
}
|
||||||
|
|
||||||
copy_files(){
|
copy_files(){
|
||||||
|
umask 022
|
||||||
echo -e "${green}[*] Coping theme from $path_to_git_clone to /usr/share/sddm/themes/.${no_color}"
|
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}"
|
[ -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
|
sudo mkdir -p /usr/share/sddm/themes/sddm-astronaut-theme
|
||||||
|
|||||||
Reference in New Issue
Block a user