modules/firefox-profile: minor fix (+popd)
This commit is contained in:
parent
78f1716450
commit
1a6eaa6b66
2 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
|||
function die {
|
||||
local ret=$?
|
||||
print -P " %F{red}%1x: %F{yellow}%U%I%u:%f $argv" >&2
|
||||
popd -q
|
||||
return $ret
|
||||
}
|
||||
|
||||
|
@ -28,7 +29,6 @@ if [[ -f $profile/.unpacked ]] {
|
|||
mv -f $profile{,.old}$ext
|
||||
if (( $? )) {
|
||||
die "failed to override the old tarball"
|
||||
popd -q
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,6 +61,7 @@ function {
|
|||
pushd -q "$fhpdir:h" || return
|
||||
tar -Ocp $profile | $=compressor $profile$ext
|
||||
if (( $? )) {
|
||||
popd -q
|
||||
die "failed to pack a new tarball"
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue