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

fix systemctl version grep

parent b7de3eaa
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ elif [ $HOST_OS = 'Linux' ]; then
echo "No systemd - Backup will need to be run manually"
else
SYSTEMD=1
sysd_ver=$(systemctl --version |grep -o '[0-9][0-9][0-9]')
sysd_ver=$(systemctl --version |grep -o '\s[0-9][0-9][0-9]\s')
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