M tools/q,cat.sh => tools/q,cat.sh +1 -1
@@ 14,6 14,6 @@ is_command() {
[ "$1" = "-h" ] && { helpf; exit 1; }
[ $# -eq 1 ] && { helpf; exit 1; }
is_command qcat || exit 1
-while IFS= read -r job || [ -n "$job" ]; do
+while IFS= read -r job || [ "$job" != "" ]; do
qcat "$2" "$job"
done < "$1"
M tools/q,check.sh => tools/q,check.sh +4 -4
@@ 15,10 15,10 @@ is_command nci_account || exit 1
me="$(whoami)"
echo "Filesystem usage for ${me}:"
echo "----------------------------"
-nci-files-report -u ${me} -D
+nci-files-report -u "$me" -D
echo
echo "Project summary for $1:"
echo "------------------------"
-nci-files-report -p $1 -D
-nci_account -P $1
-nci_account -P $1 -v|grep "User\|${me}" --color=never
+nci-files-report -p "$1" -D
+nci_account -P "$1"
+nci_account -P "$1" -v|grep "User\|${me}" --color=never
M tools/q,lint.sh => tools/q,lint.sh +2 -2
@@ 53,7 53,7 @@ while IFS= read -r line || [ -n "$line" ]; do
esac;;
*) ;;
esac
- lineno=$(( $lineno + 1 ))
+ lineno=$(( lineno + 1 ))
done <"$1"
-[ $(grep -c '^[^#].*' "$1") -gt 0 ] || die "all lines are commented!"
+[ "$(grep -c '^[^#].*' "$1")" -gt 0 ] || die "all lines are commented!"