diff --git a/midipix/pedeps.sh b/midipix/pedeps.sh index 0ac93c0..941014e 100755 --- a/midipix/pedeps.sh +++ b/midipix/pedeps.sh @@ -16,7 +16,7 @@ case $1 in while read filename ; do case "${filename}" in *.so*) - if [ -L ${filename} ]; then + if [ -L "${filename}" ]; then # Skip symlink files continue fi @@ -24,10 +24,10 @@ case $1 in DIR="`dirname ${filename}`" FILE="`basename ${filename}`" if [[ $DIR =~ "/lib64" ]]; then - echo -n "${FILE}(64bit)\n" + printf "%s(64bit)\n" "${FILE}" fi if [[ $DIR =~ "/lib32" ]]; then - echo -n "${FILE}(32bit)\n" + printf "%s(32bit)\n" "${FILE}" fi esac done @@ -42,13 +42,13 @@ case $1 in if [[ $DIR =~ "/lib64" ]]; then for dep in "${DEPS[@]}" do - echo -n "${dep}(64bit)\n" + printf "%s(64bit)\n" "${dep}" done fi if [[ $DIR =~ "/lib32" ]]; then for dep in "${DEPS[@]}" do - echo -n "${dep}(32bit)\n" + printf "%s(32bit)\n" "${dep}" done fi done