MT#22361 helper/restore-permissions: ensure we're in the target directory

Otherwise the according changes might not get applied as needed.

Change-Id: I00909bb54af20a73302225fb4167d58e7a998d39
changes/54/8254/1
Michael Prokop 10 years ago
parent 581f8b14d1
commit 40cc015a20

@ -34,6 +34,8 @@ if ! [ -d "${target_directory}" ] ; then
exit 1
fi
cd "$target_directory"
# should only be run on repositories you trust
if ! [ -e "$target_directory"/.ngcpcfg_perms ]; then
log_warn "Permission file ${target_directory}/.ngcpcfg_perms doesn't exist."

Loading…
Cancel
Save