Skip to content

Commit dd02822

Browse files
committed
Merge pull request #44 from braf/master
Minor fix for checking if Puppet has already been installed on Ubuntu
2 parents 1da75cc + 04d087c commit dd02822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if [ "$(id -u)" != "0" ]; then
1717
exit 1
1818
fi
1919

20-
if which puppet > /dev/null 2>&1 -a apt-cache policy | grep --quiet apt.puppetlabs.com; then
20+
if which puppet > /dev/null 2>&1 && apt-cache policy | grep --quiet apt.puppetlabs.com; then
2121
echo "Puppet is already installed."
2222
exit 0
2323
fi

0 commit comments

Comments
 (0)