We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d883bf9 commit bcbe862Copy full SHA for bcbe862
1 file changed
linux_extras/checklib.sh
@@ -34,8 +34,27 @@ elif [ -x "$arg1" ] && file "$arg1" | grep -q 'ELF'; then
34
echo
35
echo "The '$arg1' file is an ELF binary executable ok for 'ldd' check!!"
36
else
37
+ if [ -x "$arg1" ]; then
38
+ echo
39
+ echo "The '$arg1' file does have execution permissions!!"
40
+ else
41
42
+ echo "The '$arg1' file does NOT have execution permissions!!"
43
+ fi
44
+
45
+ if file "$arg1" | grep -q 'ELF'; then
46
47
+ echo "The '$arg1' file is an ELF binary!"
48
49
50
+ echo "The '$arg1' file is NOT an ELF binary!"
51
52
53
- echo "The '$arg1' file is not an ELF binary executable!!"
54
55
+ ldd $arg1
56
57
58
echo "Exiting script!"
59
60
exit 1;
0 commit comments