From 3269e7be3008f80e842710d2a80f5b282871064d Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 4 Jun 2024 12:01:54 -0400 Subject: [PATCH] Try to sudo to create and tune the file --- .github/workflows/validate_datasets.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate_datasets.yml b/.github/workflows/validate_datasets.yml index 0a7150c5d..6b7454571 100644 --- a/.github/workflows/validate_datasets.yml +++ b/.github/workflows/validate_datasets.yml @@ -73,9 +73,9 @@ jobs: pushd .. git clone --depth 1 https://github.com/bids-standard/bids-validator VALIDATOR=/usr/bin/bids-validator - echo -e '#!/bin/sh\n'"$PWD/bids-validator/bids-validator/bids-validator-deno \"\$@\"" > $VALIDATOR + sudo bash -c 'echo -e "#!/bin/sh\n""$PWD/bids-validator/bids-validator/bids-validator-deno \"\$@\"" > /usr/bin/bids-validator' cat $VALIDATOR - chmod a+x $VALIDATOR + sudo chmod a+rx $VALIDATOR which -a bids-validator bids-validator --version bids-validator --help