modules: firefox-profile: minor update (removed NULL_GLOB in favor of (N))
This commit is contained in:
parent
03bf83eac5
commit
ca75bfef45
2 changed files with 8 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue