mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
linksLast and uncomment: Fix shellcheck warnings
This commit is contained in:
parent
ff17b57585
commit
5fb08c15d9
2 changed files with 4 additions and 4 deletions
|
@ -8,9 +8,9 @@
|
||||||
USAGE="Usage: $0 file.lst"
|
USAGE="Usage: $0 file.lst"
|
||||||
|
|
||||||
case $# in
|
case $# in
|
||||||
0) echo $USAGE;;
|
0) echo "$USAGE";;
|
||||||
1);;
|
1);;
|
||||||
*) echo $USAGE;;
|
*) echo "$USAGE";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
awk '
|
awk '
|
||||||
|
@ -20,4 +20,4 @@ END {
|
||||||
if ( i > 0 )
|
if ( i > 0 )
|
||||||
for ( i in links) print links[i];
|
for ( i in links) print links[i];
|
||||||
}
|
}
|
||||||
' $@
|
' "$@"
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
# and coalesce multiple blanks/tabs into a single blank
|
# and coalesce multiple blanks/tabs into a single blank
|
||||||
#
|
#
|
||||||
|
|
||||||
cat $@ | egrep -v '^[ ]*#|^[ ]*$' | sed 's/[ ][ ]*/ /g'|\
|
cat "$@" | grep -E -v '^[ ]*#|^[ ]*$' | sed 's/[ ][ ]*/ /g'|\
|
||||||
sed 's/ $//'
|
sed 's/ $//'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue