We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26ff363 commit d2cf13aCopy full SHA for d2cf13a
install.sh
@@ -161,13 +161,7 @@ check_forked() {
161
# Check for lsb_release command existence, it usually exists in forked distros
162
if command_exists lsb_release; then
163
# Check if the `-u` option is supported
164
- set +e
165
- lsb_release -a -u > /dev/null 2>&1
166
- lsb_release_exit_code=$?
167
- set -e
168
-
169
- # Check if the command has exited successfully, it means we're in a forked distro
170
- if [ "$lsb_release_exit_code" = "0" ]; then
+ if lsb_release -a -u > /dev/null 2>&1 ; then
171
# Print info about current distro
172
cat <<-EOF
173
You're using '$lsb_dist' version '$dist_version'.
0 commit comments