diff --git a/change-gdm-background b/change-gdm-background index 1ee4c98..916fdf8 100755 --- a/change-gdm-background +++ b/change-gdm-background @@ -12,8 +12,8 @@ fi # Check what linux distro is being used. distro="$(lsb_release -c | cut -f 2)" -if ! [[ "$distro" =~ (focal|groovy|hirsute|impish) ]]; then - echo 'Sorry, this script only works with focal, groovy or hirsute distros.' +if ! [[ "$distro" =~ (focal|groovy|hirsute|impish|jammy) ]]; then + echo 'Sorry, this script only works with focal, groovy, hirsute, impish or jammy distros.' exit 1 fi @@ -124,7 +124,7 @@ CleanUp() { ReplacingBg() { oldBg="#lockDialogGroup \{\n?.*?\}" - if [[ "$distro" == "impish" ]]; then + if [[ "$distro" =~ (impish|jammy) ]]; then perl -i -0777 -pe "s/$oldBg/$newBg/s" "$workDir"/theme/gdm.css else perl -i -0777 -pe "s/$oldBg/$newBg/s" "$workDir"/theme/gdm3.css