nyan now checks that pv exists before starting.

dev
Emily Frost 5 years ago
parent 1ba7f6fc1e
commit d2108eb528
Signed by: Emily
GPG Key ID: AA5D42849F1CBDC9

@ -2,10 +2,14 @@
optstring="o:"
declare -i abort=0
# TODO: Check for dependencies pv and stat.
# TODO: Add help option to display usage.
# TODO: Consider a switch for per-file progress bars rather than a whole-operation one.
if [ ! -e "$(which pv)" ]; then
echo "Error: pv does not seem to be installed. Exiting."
exit 1
fi
while getopts ${optstring} args; do
case $args in
o) output_file=${OPTARG} ;;

Loading…
Cancel
Save