Skip to content

Commit

Permalink
Fix spaces in bind-hooks paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Llewellynvdm authored and jaromil committed Jan 12, 2024
1 parent 21da75a commit 8be3163
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tomb
Original file line number Diff line number Diff line change
Expand Up @@ -2594,8 +2594,11 @@ exec_safe_bind_hooks() {
# each line, using zsh word separator array subscript
_bindhooks="${mapfile[${mnt}/bind-hooks]}"
for h in ${(f)_bindhooks}; do
h=${h//\\ /__ESC_SPACE__}
s="${h[(w)1]}"
d="${h[(w)2]}"
s=${s//__ESC_SPACE__/ }
d=${d//__ESC_SPACE__/ }
[[ -z $s ]] && { _warning "bind-hooks file is broken"; return 1 }
[[ -z $d ]] && { _warning "bind-hooks file is broken"; return 1 }
maps+=($s $d)
Expand Down

0 comments on commit 8be3163

Please sign in to comment.