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,10 +24,13 @@ local ext=.tar.$compressor[(w)1]
pushd -q "$HOME"/.mozilla/firefox || return
if [[ -f $profile/.unpacked ]] {
mv -f $profile{,.old}$ext
if (( $? )) {
die "failed to override the old tarball"
return
if [[ -f $profile$ext ]] {
mv -f $profile{,.old}$ext
if (( $? )) {
die "failed to override the old tarball"
popd -q
return
}
}
tar -X $profile/.unpacked -Ocp $profile | $=compressor $profile$ext

@ -15,7 +15,6 @@ function die {
}
setopt EXTENDED_GLOB
setopt NULL_GLOB
zstyle -s ':prezto:module:firefox-profile' profile 'profile'
zstyle -s ':prezto:module:firefox-profile' compressor 'compressor'
@ -27,7 +26,7 @@ if [[ -z "$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 ]] {
unset compressor profile zramdir zsh_hook
die "null firefox home profile"

Loading…
Cancel
Save