Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common/Scripts: return 1 instead of exit 1 on err in helper.sh #1011

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions common/Scripts/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
# This function will only work if this script is sourced
# by your bash shell.
function gotosoluspkgs() {
cd "$(dirname "$(readlink "${BASH_SOURCE[0]}")")/../../" || exit 1
cd "$(dirname "$(readlink "${BASH_SOURCE[0]}")")/../../" || return 1
}

# Goes to the root directory of the git repository
function goroot() {
cd "$(git rev-parse --show-toplevel)" || exit 1
cd "$(git rev-parse --show-toplevel)" || return 1
}

# Push into a package directory
function gotopkg() {
cd "$(git rev-parse --show-toplevel)"/packages/*/"$1" || exit 1
cd "$(git rev-parse --show-toplevel)"/packages/*/"$1" || return 1
}

# What provides a lib
Expand Down