Scripts: minor fixes
parent
0e23dc8de9
commit
cfdc675bbf
|
@ -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}
|
||||
|
|
|
@ -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)"
|
||||
|
||||
|
|
|
@ -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" \( \
|
||||
|
|
Loading…
Reference in New Issue