From 840cbd5b796eeb1d27e36ec90cd0748f4c773768 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 7 Nov 2024 13:08:24 +0300 Subject: [PATCH] fix(scripts): Make sure GNU parallel inherits full path of shell --- build-aux/list-distfiles.sh.in | 10 +++++----- scripts/split_chapters.zsh.in | 9 +++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/build-aux/list-distfiles.sh.in b/build-aux/list-distfiles.sh.in index 8ee70938..a4fc0c6a 100755 --- a/build-aux/list-distfiles.sh.in +++ b/build-aux/list-distfiles.sh.in @@ -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 diff --git a/scripts/split_chapters.zsh.in b/scripts/split_chapters.zsh.in index 9b9d1e9b..b8086213 100644 --- a/scripts/split_chapters.zsh.in +++ b/scripts/split_chapters.zsh.in @@ -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