fix: exit after sudo
This commit is contained in:
parent
3e402bdc91
commit
95eb1178aa
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ function add_opt() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! [ -w "/var/run/docker.sock" ] && [ "$EUID" != 0 ]; then
|
if ! [ -w "/var/run/docker.sock" ] && [ "$EUID" != 0 ]; then
|
||||||
sudo -- "$0" "$@"
|
exec sudo -- "$0" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
c=1
|
c=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue