Untitled
public shellscript v1 · immutable #Needed to Indent Dependencies LEFTOFFSET="17" TTYWIDTH="$(stty size | awk '{print $2}')" LINECHARSMAX="$((TTYWIDTH-LEFTOFFSET))" echo -n "Depends On : " charsonthisline=0 if [ -n "$depends" ]; then for dep in $depends; do deplength="${#dep}" charsonthisline="$((charsonthisline+deplength+1))" if [ "$charsonthisline" -le "$LINECHARSMAX" ]; then echo -n "$dep " else echo echo -n " $dep " charsonthisline=0 fi done fi