File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
3
3
# Get a count of each defined term used in #if directives
4
4
# This can be useful to check for typos in the names
5
5
6
- grep " #[ \t]*if" $( find . -name " *.[ch]" ) | \
6
+ declare -a c_src_files=()
7
+ mapfile -t c_src_files < <( find . -name " *.[ch]" )
8
+
9
+ grep " #[ \t]*if" " ${c_src_files[@]} " | \
7
10
grep -v " _H$" | \
8
11
sed -e " s/.*://" | \
9
12
sed -e " s/#ifn*def *//" -e " s/#if *//" | \
Original file line number Diff line number Diff line change 1
- #! /usr/ bin/env bash
1
+ #! /bin/sh
2
2
3
3
MAJ_VER=$( uname -r | cut -d' .' -f1)
4
4
MIN_VER=$( uname -r | cut -d' .' -f2)
22
22
fi
23
23
24
24
# The magic file must be the one in the snap
25
- export MAGIC=${SNAP} /usr/share/misc/magic
25
+ MAGIC=" ${SNAP} /usr/share/misc/magic"
26
+ export MAGIC
26
27
27
- exec ${SNAP} /usr/sbin/${BINARY} " $@ "
28
+ exec " ${SNAP} /usr/sbin/${BINARY} " " $@ "
You can’t perform that action at this time.
0 commit comments