42-archive/nm-otool/scripts/nmdiff.sh

7 lines
128 B
Bash
Executable file

#!/usr/bin/env zsh
diff <(./ft_nm $@) <(nm $@)
if [ $? -eq 0 ]; then
echo "nm $@\t OK ✅ "
else
echo "nm $@\t ERROR ✅ "
fi