We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 272bd94 + e2a47b4 commit b38a288Copy full SHA for b38a288
bin/hocho
@@ -1,14 +1,5 @@
1
#!/bin/bash
2
prefix=()
3
4
-if [[ -z "$SUDO_PASSWORD" ]]; then
5
- if which envchain > /dev/null 2>&1 && envchain --list | grep -q sudo; then
6
- prefix=("envchain" "sudo")
7
- else
8
- echo "Environment variable \$SUDO_PASSWORD must be set."
9
- echo "Retry this after installing envchain and running: envchain --set sudo SUDO_PASSWORD"
10
- exit 1
11
- fi
12
-fi
13
14
exec "${prefix[@]}" bundle exec hocho "$@"
0 commit comments