From 4518ff00093e9b61286dde0f1e2b00372bf5d5a9 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 5 Nov 2024 11:11:57 -0500 Subject: [PATCH] Address shellcheck concerns with images/repronim/repronim-psychopy.sh --- images/repronim/repronim-psychopy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/images/repronim/repronim-psychopy.sh b/images/repronim/repronim-psychopy.sh index abf4c760..383fa31c 100755 --- a/images/repronim/repronim-psychopy.sh +++ b/images/repronim/repronim-psychopy.sh @@ -5,7 +5,8 @@ set -eu v=2024.1.4 generate() { - [ "$1" == singularity ] && add_entry=' "$@"' || add_entry='' + # unused ATM + # [ "$1" == singularity ] && add_entry=' "$@"' || add_entry='' ndversion=1.0.1 # Thought to use conda-forge for this, but feedstock is not maintained: # https://github.com/conda-forge/psychopy-feedstock/issues/64 @@ -24,7 +25,7 @@ generate() { libusb-1.0-0-dev portaudio19-dev libasound2-dev \ vim wget strace time ncdu gnupg curl procps pigz less tree python3 python3-pip \ --run "git clone https://github.com/wieluk/psychopy_linux_installer/ /opt/psychopy-installer; cd /opt/psychopy-installer; git checkout 21b1ac36ee648e00cc3b68fd402c1e826270dad6" \ - --run "/opt/psychopy-installer/psychopy_linux_installer.sh --install_dir=/opt/psychopy --psychopy_version="$v" --bids_version=2023.2.0 --python_version=3.10.14 --wxpython_version=4.2.1 -v -f" \ + --run "/opt/psychopy-installer/psychopy_linux_installer.sh --install_dir=/opt/psychopy --psychopy_version='$v' --bids_version=2023.2.0 --python_version=3.10.14 --wxpython_version=4.2.1 -v -f" \ --run "/opt/psychopy/psychopy_*/bin/pip install qrcode" \ --run "bash -c 'ln -s /opt/psychopy/psychopy_*/bin/psychopy /usr/local/bin/'" \ --run "bash -c 'b=\$(ls /opt/psychopy/psychopy_*/bin/python3); echo -e \"#!/bin/sh\n\$b \\\"\\\$@\\\"\" >| /usr/local/bin/python3; chmod a+x /usr/local/bin/python3'" \