scripts/*.files: Use single quotes for constant strings
This commit is contained in:
parent
5b9096b561
commit
66ee80b813
@ -1,7 +1,7 @@
|
||||
#!/bin/sh -efu
|
||||
while IFS=$'\t' read -r f t; do
|
||||
case "$t" in
|
||||
*ELF*" shared object"*)
|
||||
*ELF*' shared object'*)
|
||||
echo "$f" ;;
|
||||
esac
|
||||
done
|
||||
|
@ -1,9 +1,9 @@
|
||||
#!/bin/sh -efu
|
||||
while IFS=$'\t' read -r f t; do
|
||||
case "$t" in
|
||||
*ELF*" shared object"*)
|
||||
*ELF*' shared object'*)
|
||||
echo "$f" ;;
|
||||
*ELF*" executable"*"dynamically linked"*)
|
||||
*ELF*' executable'*'dynamically linked'*)
|
||||
[ -x "$f" ] && echo "$f" ||
|
||||
echo "${0##*/}: ELF executable $f not executable" >&2 ;;
|
||||
esac
|
||||
|
@ -7,8 +7,8 @@ while IFS=$'\t' read -r f t; do
|
||||
*) continue ;;
|
||||
esac
|
||||
case "$t" in
|
||||
*" text"*) echo "$f" ;;
|
||||
*"symbolic link to "*) ;;
|
||||
*' text'*) echo "$f" ;;
|
||||
*'symbolic link to '*) ;;
|
||||
*) echo "${0##*/}: $f: $t" >&2 ;;
|
||||
esac
|
||||
done
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh -efu
|
||||
while IFS=$'\t' read -r f t; do
|
||||
case "$t" in
|
||||
*"script text executable"*)
|
||||
*'script text executable'*)
|
||||
[ -x "$f" ] && echo "$f" ||
|
||||
echo "${0##*/}: executable script $f not executable" >&2 ;;
|
||||
esac
|
||||
|
@ -2,16 +2,16 @@
|
||||
while IFS=$'\t' read -r f t; do
|
||||
case "$t" in
|
||||
#!/bin/sh
|
||||
*"Bourne shell script text"*)
|
||||
*'Bourne shell script text'*)
|
||||
echo "$f" ;;
|
||||
#!/bin/bash
|
||||
*"Bourne-Again shell script text"*)
|
||||
*'Bourne-Again shell script text'*)
|
||||
echo "$f" ;;
|
||||
#!/usr/bin/env bash
|
||||
*" bash script text"*)
|
||||
*' bash script text'*)
|
||||
echo "$f" ;;
|
||||
#!/bin/ash
|
||||
*" /bin/ash script text"*)
|
||||
*' /bin/ash script text'*)
|
||||
echo "$f" ;;
|
||||
esac
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user