mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
examples: Support mac os to execute all
This commit is contained in:
parent
a607bf586b
commit
82bd8a3f8b
1 changed files with 8 additions and 1 deletions
|
@ -4,7 +4,14 @@ GREEN='\033[32m'
|
|||
NC='\033[0m'
|
||||
|
||||
INTERVAL=${1:-2}
|
||||
EXAMPLES=`find . -executable -type f | sort | uniq`
|
||||
CHECK_OS="`uname -s`"
|
||||
|
||||
if [[ "$CHECK_OS" = "Darwin"* ]]; then
|
||||
EXAMPLES=`find . -perm +111 -type f | sort | uniq`
|
||||
else
|
||||
EXAMPLES=`find . -executable -type f | sort | uniq`
|
||||
fi
|
||||
|
||||
for EXAMPLE in $EXAMPLES
|
||||
do
|
||||
if [[ $EXAMPLE == *.sh ]]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue