File: checkbashisms-wrapper.sh

package info (click to toggle)
jgmenu 4.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,464 kB
  • sloc: ansic: 13,215; perl: 4,953; sh: 3,009; python: 600; makefile: 294; xml: 98
file content (16 lines) | stat: -rwxr-xr-x 374 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

printf "%s\n" "Checking shell scripts for bashisms..."

find src/ -name "*.sh" | xargs perl ./scripts/checkbashisms.pl --force 2>&1 \
	| grep -v "^could not find"

printf "%s\n" "Searching for files staring with '#!/bin/bash'..."

for f in $(find . -name "*.sh" | xargs)
do
	if cat ${f} | grep '^#!/bin/bash' >/dev/null 2>&1
	then
		printf "%b\n" "${f}"
	fi
done