rgain3 icon indicating copy to clipboard operation
rgain3 copied to clipboard

Change tests.sh for portability

Open slycordinator opened this issue 1 year ago • 0 comments

  1. Changed to use /bin/sh instead of /bin/bash

Everything in the script is already posix compliant.

  1. Change to use find -exec rm -rf {} + instead of find | xargs rm -rf

This avoids the edge case of when one of the paths to the subdirectories have spaces or other unusual characters.

An alternative fix for that is to use "find . -name pycache -type d -print0 | xargs -0 rm -rf", but this is a less portable option

slycordinator avatar Jul 21 '23 06:07 slycordinator