mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-21 07:31:01 +00:00
14 lines
233 B
Bash
Executable file
14 lines
233 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "[fail] usage: $0 binary"
|
|
exit 2
|
|
fi
|
|
|
|
if file $1 | grep 'dynamically linked' 2>&1; then
|
|
echo "[fail] $1 is dynamic"
|
|
exit 1
|
|
fi
|
|
echo "[ok] $1 is probably static"
|