diff scripts/win32/deploy_build.sh @ 244:3a4aa9b4814c

scripts: convert to use posix shell it's not like we even need bash anyway
author Paper <paper@paper.us.eu.org>
date Mon, 22 Jan 2024 22:19:39 -0800
parents ed5ab3896666
children 699a20c57dc8
line wrap: on
line diff
--- a/scripts/win32/deploy_build.sh	Mon Jan 22 19:54:41 2024 -0800
+++ b/scripts/win32/deploy_build.sh	Mon Jan 22 22:19:39 2024 -0800
@@ -11,14 +11,14 @@
 	# do not run this on untrusted executables.
 	# see: ldd(1)
 	ldd "$1" | while IFS="" read -r dependency; do
-		fields=($dependency)
-		lib="${fields[2]}"
+		lib="$(cut -d' ' -f3 <<< $dependency)"
 		if [[ "$lib" == /"${MSYSTEM,,}"/* ]]; then
 			echo "$lib"
 		fi
 	done
 }
 
+
 if [ -d "$DIR" ]; then
 	rm -r "$DIR"
 fi