mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 05:43:53 -05:00
Exit with 0 status when a version file is read successfully
This commit is contained in:
@@ -10,7 +10,7 @@ if [ -e "$VERSION_FILE" ]; then
|
|||||||
version="${words[0]}"
|
version="${words[0]}"
|
||||||
if [ -n "$version" ]; then
|
if [ -n "$version" ]; then
|
||||||
echo "$version"
|
echo "$version"
|
||||||
break
|
exit
|
||||||
fi
|
fi
|
||||||
done < <( cat "$VERSION_FILE" && echo )
|
done < <( cat "$VERSION_FILE" && echo )
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user