@@ -56,8 +56,8 @@ RUN cat > analyze_binary.sh << 'EOF'
5656set -e
5757
5858echo "=== EDGE-CORE BINARY ANALYSIS ==="
59- echo "Binary: $(file ./edge-core)"
60- echo "Size: $(stat -c%s ./edge-core) bytes"
59+ echo "Binary: \ $ (file ./edge-core)"
60+ echo "Size: \ $ (stat -c%s ./edge-core) bytes"
6161echo ""
6262
6363echo "=== DYNAMIC DEPENDENCIES (ldd) ==="
@@ -86,11 +86,11 @@ echo "Mapping dynamic libraries to system packages..."
8686> edge-core-package-mapping.txt
8787if [ -s edge-core-dynamic-deps.txt ]; then
8888 while IFS= read -r line; do
89- if [[ $line =~ .*=>.*\( .*\) ]]; then
90- lib_path=$(echo "$line" | awk '{print $3}' )
91- if [ "$lib_path" != "(0x" ] && [ -f "$lib_path" ]; then
92- package=$(dpkg -S "$lib_path" 2>/dev/null | cut -d: -f1 || echo "unknown" )
93- echo "$lib_path -> $package" >> edge-core-package-mapping.txt
89+ if [[ \ $ line =~ .*=>.*\( .*\) ]]; then
90+ lib_path=\ $ (echo "\ $ line" | awk '{print \ $ 3}' )
91+ if [ "\ $ lib_path" != "(0x" ] && [ -f "\ $ lib_path" ]; then
92+ package=\ $ (dpkg -S "\ $ lib_path" 2>/dev/null | cut -d: -f1 || echo "unknown" )
93+ echo "\ $ lib_path -> \ $ package" >> edge-core-package-mapping.txt
9494 fi
9595 fi
9696 done < edge-core-dynamic-deps.txt
@@ -102,10 +102,10 @@ echo "Analyzing licenses of dependencies..."
102102> edge-core-license-analysis.txt
103103if [ -s edge-core-package-mapping.txt ]; then
104104 while IFS= read -r line; do
105- package=$(echo "$line" | cut -d' ' -f3)
106- if [ "$package" != "unknown" ] && [ "$package" != "" ]; then
107- license=$(dpkg-query -W -f='${Package}: ${License}\n ' "$package" 2>/dev/null || echo "$package: License info not available" )
108- echo "$license" >> edge-core-license-analysis.txt
105+ package=\ $ (echo "\ $ line" | cut -d' ' -f3)
106+ if [ "\ $ package" != "unknown" ] && [ "\ $ package" != "" ]; then
107+ license=\ $ (dpkg-query -W -f='\ $ {Package}: \ $ {License}\n ' "\ $ package" 2>/dev/null || echo "\ $ package: License info not available" )
108+ echo "\ $ license" >> edge-core-license-analysis.txt
109109 fi
110110 done < edge-core-package-mapping.txt
111111fi
0 commit comments