Compare commits

...

2 Commits

Author SHA1 Message Date
aea0068cc3 Stop when binary is static 2024-06-23 19:55:40 +02:00
8d8838518d README.md 2024-06-23 19:55:13 +02:00
2 changed files with 5 additions and 1 deletions

View File

@ -18,4 +18,4 @@ Usage: ./packelf-appimage.sh <ELF_SRC_PATH> <ELF_DST_PATH>
* chmod
* appimagetool (https://github.com/AppImage/appimagetool/releases)
* ldd (only needed for packing, not needed for executing or unpacking)
* fusermount (only for executing)

View File

@ -73,6 +73,10 @@ if [ ! -z "${1}" ] ; then
ld_so="$(echo "$libs" | grep -F '/ld-linux-' || echo "$libs" | grep -F '/ld-musl-')"
ld_so="$(basename "$ld_so")"
program="$(basename "${1}")"
if [ -z "${libs}" ] ; then
echo "${0}: Not a dynamic executable"
exit 1
fi
fi
else
echo "Usage: ${0} <ELF_SRC_PATH> <ELF_DST_PATH>"