From d36b59581c6c4cb54bfe0e0fef2db869b7a3e759 Mon Sep 17 00:00:00 2001 From: Teo Camarasu <teofilcamarasu@gmail.com> Date: Fri, 26 May 2023 18:11:13 +0100 Subject: [PATCH] Avoid calling in bash scripts This seems to be a Makefile-ism that has been copied over into bash scripts, but this just causes an error in bash. Resolves #30 --- shootout/fasta/boot.sh | 4 ++-- shootout/k-nucleotide/boot.sh | 4 ++-- shootout/reverse-complement/boot.sh | 2 +- spectral/awards/boot.sh | 2 +- spectral/banner/boot.sh | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/shootout/fasta/boot.sh b/shootout/fasta/boot.sh index b723c7f6..1e467575 100755 --- a/shootout/fasta/boot.sh +++ b/shootout/fasta/boot.sh @@ -13,7 +13,7 @@ HC=${3:-ghc} mode=${4:-norm} EXE="" -if [[ $(shell uname -s | grep -c 'MSYS\|MINGW') -eq 1 ]] +if [[ $(uname -s | grep -c 'MSYS\|MINGW') -eq 1 ]] then EXE=".exe" fi @@ -46,4 +46,4 @@ ${output}/fasta-c${EXE} $MODE_ARGS | tr -d '\r' > ${output}/fasta.stdout # ./fasta-c $(NORM_OPTS) | tr -d '\r' > $@ # k-nucleotide.slowstdin : fasta-c -# ./fasta-c $(SLOW_OPTS) | tr -d '\r' > $@ \ No newline at end of file +# ./fasta-c $(SLOW_OPTS) | tr -d '\r' > $@ diff --git a/shootout/k-nucleotide/boot.sh b/shootout/k-nucleotide/boot.sh index 6e9a4c1c..c5736033 100755 --- a/shootout/k-nucleotide/boot.sh +++ b/shootout/k-nucleotide/boot.sh @@ -13,7 +13,7 @@ HC=${3:-ghc} mode=${4:-norm} EXE="" -if [[ $(shell uname -s | grep -c 'MSYS\|MINGW') -eq 1 ]] +if [[ $(uname -s | grep -c 'MSYS\|MINGW') -eq 1 ]] then EXE=".exe" fi @@ -49,4 +49,4 @@ ${output}/fasta-c${EXE} $MODE_ARGS | tr -d '\r' > ${output}/${INPUT_FILE} # ./fasta-c $(NORM_OPTS) | tr -d '\r' > $@ # k-nucleotide.slowstdin : fasta-c -# ./fasta-c $(SLOW_OPTS) | tr -d '\r' > $@ \ No newline at end of file +# ./fasta-c $(SLOW_OPTS) | tr -d '\r' > $@ diff --git a/shootout/reverse-complement/boot.sh b/shootout/reverse-complement/boot.sh index de7b3a64..9b6fd8ea 100755 --- a/shootout/reverse-complement/boot.sh +++ b/shootout/reverse-complement/boot.sh @@ -13,7 +13,7 @@ HC=${3:-ghc} mode=${4:-norm} EXE="" -if [[ $(shell uname -s | grep -c 'MSYS\|MINGW') -eq 1 ]] +if [[ $(uname -s | grep -c 'MSYS\|MINGW') -eq 1 ]] then EXE=".exe" fi diff --git a/spectral/awards/boot.sh b/spectral/awards/boot.sh index f7f1c4e9..038f1062 100755 --- a/spectral/awards/boot.sh +++ b/spectral/awards/boot.sh @@ -13,7 +13,7 @@ HC=${3:-ghc} mode=${4:-norm} EXE="" -if [[ $(shell uname -s | grep -c 'MSYS\|MINGW') -eq 1 ]] +if [[ $(uname -s | grep -c 'MSYS\|MINGW') -eq 1 ]] then EXE=".exe" fi diff --git a/spectral/banner/boot.sh b/spectral/banner/boot.sh index a7480dad..bee76891 100755 --- a/spectral/banner/boot.sh +++ b/spectral/banner/boot.sh @@ -13,7 +13,7 @@ HC=${3:-ghc} mode=${4:-norm} EXE="" -if [[ $(shell uname -s | grep -c 'MSYS\|MINGW') -eq 1 ]] +if [[ $(uname -s | grep -c 'MSYS\|MINGW') -eq 1 ]] then EXE=".exe" fi -- GitLab