Skip to content

Commit

Permalink
fix(scripts): Make sure GNU parallel inherits full path of shell
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 7, 2024
1 parent 55a86ee commit 840cbd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions build-aux/list-distfiles.sh.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!@SHELL@
set -e

alias find="${FIND:-@FIND@}"
alias grep="${GREP:-@GREP@}"
alias sed="${SED:-@SED@}"
alias sort="${SORT:-@SORT@}"
alias xargs="${XARGS:-@XARGS@}"
alias find="${FIND:=@FIND@}"
alias grep="${GREP:=@GREP@}"
alias sed="${SED:=@SED@}"
alias sort="${SORT:=@SORT@}"
alias xargs="${XARGS:=@XARGS@}"

finder () {
test -d "$1" || return 0
Expand Down
9 changes: 5 additions & 4 deletions scripts/split_chapters.zsh.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ set -e

source "$CASILEDIR/lib/functions.zsh"

alias pandoc="${PANDOC:-@PANDOC@}"
alias sed="${SED:-@SED@}"
alias mkdir="${MKDIR_P:-@MKDIR_P@}"
alias parallel="${PARALLEL:-@PARALLEL@}"
alias pandoc="${PANDOC:=@PANDOC@}"
alias sed="${SED:=@SED@}"
alias mkdir="${MKDIR_P:=@MKDIR_P@}"
alias parallel="${PARALLEL:=@PARALLEL@}"
alias zsh="${ZSH:=@ZSH@}"

splitlevels=$1
test -n $splitlevels
Expand Down

0 comments on commit 840cbd5

Please sign in to comment.