Skip to content

Commit

Permalink
pnd: Push/Pop dir only during/after function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Sep 10, 2017
1 parent a428461 commit 5966699
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/makepnd.in
Original file line number Diff line number Diff line change
Expand Up @@ -1984,17 +1984,17 @@ out_pxml() {
out_pxml_descriptions
echo '</package>'
for e in "${pndexec[@]}"; do
local oldcd="$PWD"
backup_package_variables
pndtitle[en_US]=''
pnddesc[en_US]=''
if declare -F "pnd_application_information" > /dev/null; then
local oldcd="$PWD"
run_function_safe "pnd_application_information" "$e"
cd_safe "$oldcd"
fi
check_sanity
check_sanity || exit 1
pndauthor=${pndauthor-$packager}
pndappdata=${pndappdata-$pkgname}
cd_safe "$oldcd"

echo "<application id=\"$(sedxml "$pkgname")\" appdata=\"$(sedxml "$pndappdata")\">"
echo "<exec command=\"$(sedxml "$e")\"/>"
Expand Down

0 comments on commit 5966699

Please sign in to comment.