Skip to content

Commit 15800d0

Browse files
committed
bootstrap-librdkafka: don't run sudo if already root (e.q., in docker)
1 parent 83cd60c commit 15800d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/bootstrap-librdkafka.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fi
4343

4444
make -j
4545

46-
if [[ $INSTALLDIR == /usr ]]; then
46+
if [[ $INSTALLDIR == /usr && $(whoami) != root ]]; then
4747
sudo make install
4848
else
4949
make install

0 commit comments

Comments
 (0)