Scripts: minor fixes

master
Pierre Neidhardt 2013-10-25 13:44:07 +02:00
parent 0e23dc8de9
commit cfdc675bbf
3 changed files with 3 additions and 3 deletions

View File

@ -42,5 +42,5 @@ fi
[ -z "$(command -v pacman)" ] && echo "You need pacman to run this script." && exit 1
## We use "eval" to be compatible with non-POSIX wordglobbing (e.g. zsh).
## We use "eval" to be compatible with non-POSIX wordsplitting (e.g. zsh).
du -bch $(pacman -Qlq "$@" | grep -v ".*/$" | sort -u) 2>/dev/null | eval ${OPTION_SORT}

View File

@ -59,7 +59,7 @@ else
fi
## We use external variable for awk to fit current locales.
## We use "eval" to be compatible with non-POSIX wordglobbing (e.g. zsh).
## We use "eval" to be compatible with non-POSIX wordsplitting (e.g. zsh).
RESULT="$(${CMD} $@ 2>/dev/null | awk -F "$SEP" -v filter="$pacman_size" -v pkg="$pacman_name" \
'$0 ~ pkg {pkgname=$2} $0 ~ filter {gsub(/\..*/,"") ; printf("%6s KiB %s\n", $2, pkgname)}' | sort -uk3 | eval $OPT_SORTN)"

View File

@ -238,7 +238,7 @@ for i in "$@"; do
## WARNING: ffmpeg continues to read stdin once it has started, so it should
## not be called from within a while<<EOF loop without disabling stdin.
while IFS= read -r i; do
while IFS= read -r j; do
_transcode "$j"
done<<EOF
$(find "$i" \( \