Commit bc75584f authored by Ben Boeckel's avatar Ben Boeckel

Merge branch 'cd-top-dir' into 'master'

update-common: cd to the top-level directory first

Closes #3

See merge request !6
parents c1491766 b094fcba
......@@ -71,6 +71,9 @@ warn () {
readonly regex_date='20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]'
readonly basehash_regex="$name $regex_date ([0-9a-f]*)"
readonly toplevel_dir="$( git rev-parse --show-toplevel )"
cd "$toplevel_dir"
########################################################################
# Sanity checking
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment