Using a shell script but it fails with spaces on directory or name

Published --