Skip to content

generateAudioResources.sh can't handle directories with spaces #208

@cleary

Description

@cleary

The $1 needs to be quoted with find:

diff --git a/generateAudioResources.sh b/generateAudioResources.sh
index 920ed529..5b661b18 100755
--- a/generateAudioResources.sh
+++ b/generateAudioResources.sh
@@ -1,7 +1,7 @@
 #/bin/sh
 printf "[\n"
 dircount=0
-find $1 -mindepth 1 -maxdepth 1 -iname "*" | sort | while read d; do
+find "$1" -mindepth 1 -maxdepth 1 -iname "*" | sort | while read d; do
   if [ -d "$d" ]
   then
     dirname=`basename $d`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions