1
0
Fork 0

modules: firefox-profile: minor update (removed NULL_GLOB in favor of (N))

pull/683/head
tokiclover 10 years ago
parent 03bf83eac5
commit ca75bfef45

@ -24,11 +24,14 @@ local ext=.tar.$compressor[(w)1]
pushd -q "$HOME"/.mozilla/firefox || return pushd -q "$HOME"/.mozilla/firefox || return
if [[ -f $profile/.unpacked ]] { if [[ -f $profile/.unpacked ]] {
if [[ -f $profile$ext ]] {
mv -f $profile{,.old}$ext mv -f $profile{,.old}$ext
if (( $? )) { if (( $? )) {
die "failed to override the old tarball" die "failed to override the old tarball"
popd -q
return return
} }
}
tar -X $profile/.unpacked -Ocp $profile | $=compressor $profile$ext tar -X $profile/.unpacked -Ocp $profile | $=compressor $profile$ext
(( $? )) && die "failed to repack a new tarball" (( $? )) && die "failed to repack a new tarball"

@ -15,7 +15,6 @@ function die {
} }
setopt EXTENDED_GLOB setopt EXTENDED_GLOB
setopt NULL_GLOB
zstyle -s ':prezto:module:firefox-profile' profile 'profile' zstyle -s ':prezto:module:firefox-profile' profile 'profile'
zstyle -s ':prezto:module:firefox-profile' compressor 'compressor' zstyle -s ':prezto:module:firefox-profile' compressor 'compressor'
@ -27,7 +26,7 @@ if [[ -z "$compressor" ]] {
zstyle ':prezto:module:firefox-profile' compressor "$compressor" zstyle ':prezto:module:firefox-profile' compressor "$compressor"
} }
: ${profile:=${$(print $HOME/.mozilla/firefox/*.default(/)):t}} : ${profile:=${$(print $HOME/.mozilla/firefox/*.default(/N)):t}}
if [[ -z $profile ]] { if [[ -z $profile ]] {
unset compressor profile zramdir zsh_hook unset compressor profile zramdir zsh_hook
die "null firefox home profile" die "null firefox home profile"

Loading…
Cancel
Save