mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-09-27 20:29:01 +00:00
Fix spaces in bind-hooks paths
This commit is contained in:
parent
21da75adab
commit
8be3163022
3
tomb
3
tomb
@ -2594,8 +2594,11 @@ exec_safe_bind_hooks() {
|
|||||||
# each line, using zsh word separator array subscript
|
# each line, using zsh word separator array subscript
|
||||||
_bindhooks="${mapfile[${mnt}/bind-hooks]}"
|
_bindhooks="${mapfile[${mnt}/bind-hooks]}"
|
||||||
for h in ${(f)_bindhooks}; do
|
for h in ${(f)_bindhooks}; do
|
||||||
|
h=${h//\\ /__ESC_SPACE__}
|
||||||
s="${h[(w)1]}"
|
s="${h[(w)1]}"
|
||||||
d="${h[(w)2]}"
|
d="${h[(w)2]}"
|
||||||
|
s=${s//__ESC_SPACE__/ }
|
||||||
|
d=${d//__ESC_SPACE__/ }
|
||||||
[[ -z $s ]] && { _warning "bind-hooks file is broken"; return 1 }
|
[[ -z $s ]] && { _warning "bind-hooks file is broken"; return 1 }
|
||||||
[[ -z $d ]] && { _warning "bind-hooks file is broken"; return 1 }
|
[[ -z $d ]] && { _warning "bind-hooks file is broken"; return 1 }
|
||||||
maps+=($s $d)
|
maps+=($s $d)
|
||||||
|
Loading…
Reference in New Issue
Block a user