Skip to content

Commit

Permalink
✨ Display hash progress depending on terminal width
Browse files Browse the repository at this point in the history
  • Loading branch information
evrignaud committed Oct 23, 2016
1 parent 1e1b68d commit 0d6a67b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/script/fim
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ fi

baseDir=`dirname "$(${readLinkCommand} -f "$0")"`

if hash tput 2>/dev/null; then
export TERMINAL_COLUMNS=$(tput cols)
fi

JAVA_OPTIONS="-Xmx2g -XX:MaxMetaspaceSize=128m"

java ${JAVA_OPTIONS} -jar "${baseDir}/bin/fim-${project.version}.jar" "${1}" "${2}" "${3}" "${4}" "${5}" "${6}" "${7}" "${8}" "${9}" "${10}"
Expand Down

0 comments on commit 0d6a67b

Please sign in to comment.