From 87962c0316a1d32c3f799dd8ed4ac39915d76dfb Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: May 27 2018 01:50:15 +0000 Subject: pedeps: Small tweaks to make shellcheck stop throwing fatal errors --- diff --git a/midipix/pedeps.sh b/midipix/pedeps.sh index 5d3f007..0ac93c0 100755 --- a/midipix/pedeps.sh +++ b/midipix/pedeps.sh @@ -16,6 +16,10 @@ case $1 in while read filename ; do case "${filename}" in *.so*) + if [ -L ${filename} ]; then + # Skip symlink files + continue + fi # Print the name of the library with correct multilibbing DIR="`dirname ${filename}`" FILE="`basename ${filename}`" @@ -25,7 +29,6 @@ case $1 in if [[ $DIR =~ "/lib32" ]]; then echo -n "${FILE}(32bit)\n" fi - ;; esac done ;; @@ -37,18 +40,17 @@ case $1 in PEDEPS="`perk -d ${filename}`" readarray -t DEPS <<<"$PEDEPS" if [[ $DIR =~ "/lib64" ]]; then - for dep in "${PEDEPS[@]}" + for dep in "${DEPS[@]}" do echo -n "${dep}(64bit)\n" done fi if [[ $DIR =~ "/lib32" ]]; then - for dep in "${PEDEPS[@]}" + for dep in "${DEPS[@]}" do echo -n "${dep}(32bit)\n" done fi - ;; done ;; esac