Skip to content

Commit

Permalink
Support variable declaring of non-default nodejs binary
Browse files Browse the repository at this point in the history
Issue KevCui#73
  • Loading branch information
KevCui committed Aug 24, 2022
1 parent 61dca37 commit f09f438
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion animepahe-dl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ set_var() {
_CURL="$(command -v curl)" || command_not_found "curl"
_JQ="$(command -v jq)" || command_not_found "jq"
_FZF="$(command -v fzf)" || command_not_found "fzf"
_NODE="$(command -v node)" || command_not_found "node"
if [[ -z ${ANIMEPAHE_DL_NODE:-} ]]; then
_NODE="$(command -v node)" || command_not_found "node"
else
_NODE="$ANIMEPAHE_DL_NODE"
fi
_FFMPEG="$(command -v ffmpeg)" || command_not_found "ffmpeg"
if [[ ${_PARALLEL_JOBS:-} -gt 1 ]]; then
_OPENSSL="$(command -v openssl)" || command_not_found "openssl"
Expand Down

0 comments on commit f09f438

Please sign in to comment.