Skip to content
Snippets Groups Projects
Unverified Commit ad0813af authored by aptalca's avatar aptalca Committed by GitHub
Browse files

grep shouldn't be this confusing

parent 43281e33
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ mkdir -p /config/{extensions,data,workspace,.ssh}
if [ -n "${SUDO_PASSWORD}" ]; then
echo "setting up sudo access"
if [ ! $(grep -c 'abc' /etc/sudoers) ]; then
if ! grep -q 'abc' /etc/sudoers; then
echo "adding abc to sudoers"
echo "abc ALL=(ALL:ALL) ALL" >> /etc/sudoers
fi
......
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