Shellcheck: SC2164 Use 'cd ... || exit' or 'cd ... || return' in case cd fails
This commit is contained in:
parent
cce56a99b9
commit
c11be06fa4
|
@ -16,7 +16,7 @@ fatal() {
|
|||
exit 1
|
||||
}
|
||||
|
||||
cd "$(cd "${0%/*}" && pwd -P)";
|
||||
cd "$(cd "${0%/*}" && pwd -P)" || exit;
|
||||
|
||||
versions=( "$@" )
|
||||
if [ ${#versions[@]} -eq 0 ]; then
|
||||
|
|
Loading…
Reference in New Issue