mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
darkman/wallpaper: error if lsb_release is not installed
This commit is contained in:
parent
42efd8ce0b
commit
f64f5727d0
@ -1,5 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if ! hash lsb_release 2> /dev/null; then
|
||||
ERRORMESSAGE="lsb_release was not found, the wallpaper scripts cannot figure out the distribution"
|
||||
echo $ERRORMESSAGE
|
||||
notify-send $ERRORMESSAGE
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export DISTROID=$(lsb_release -si)
|
||||
export DISTROREL=$(lsb_release -sr)
|
||||
|
||||
|
@ -1,5 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if ! hash lsb_release 2> /dev/null; then
|
||||
ERRORMESSAGE="lsb_release was not found, the wallpaper scripts cannot figure out the distribution"
|
||||
echo $ERRORMESSAGE
|
||||
notify-send $ERRORMESSAGE
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export DISTROID=$(lsb_release -si)
|
||||
export DISTROREL=$(lsb_release -sr)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user