Skip to content

Commit

Permalink
better help
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Nov 27, 2023
1 parent 618f48f commit 07eb404
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/scripts/progress_bar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ col=$3
max=$4


echo "progress.sh: $pro $tab $col $max"
if [ $pro = 0 ]; then
if [ $# -ne 4 ]; then
echo "$0: need 4 arguments, got $#:"
echo "pro: progress mode (0=none, 1=zenity 2=qt5)"
echo "tab: ascii table file"
echo "col: column to use to measure progress"
echo "max: max value in this column which is 100%"
exit 0
fi

echo "$0: $pro $tab $col $max"

# some programs take some startup time to create the progress file
for i in $(seq 5); do
if [ ! -e $tab ]; then
Expand Down

0 comments on commit 07eb404

Please sign in to comment.