Skip to content
Snippets Groups Projects
Commit 1c6f8260 authored by efer's avatar efer
Browse files

fix systemctl version grep again

parent e921aea3
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,8 @@ elif [ $HOST_OS = 'Linux' ]; then
echo "No systemd - Backup will need to be run manually"
else
SYSTEMD=1
sysd_ver=$(systemctl --version |grep -o '\s[0-9][0-9][0-9]\s')
# look for 3 digits with a space before and/or after
sysd_ver=$(systemctl --version |grep -o '\s[[:digit:]]\{3\}\s\{,1\}')
if [ $sysd_ver -lt 220 ]; then
echo "No 'systemctl --user' capability"
echo "Installing system wide"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment