Minor shell fixes
parent
21850855a6
commit
503b1f42e0
|
@ -107,7 +107,7 @@ _worker()
|
|||
done<<EOF
|
||||
$(echo "$INPUT" | sed -n "$CORE~${CPUNO}p")
|
||||
EOF
|
||||
|
||||
# Instead of sed, we could also use: awk "NR % $CPUNO == $CORE"
|
||||
echo "$(tput setf 5)$(tput bold)::$(tput sgr0) Thread $CORE/$CPUNO terminated."
|
||||
}
|
||||
|
||||
|
|
|
@ -402,7 +402,7 @@ aprint()
|
|||
|
||||
aprint <<EOF
|
||||
:: INTPUT :: :: OUTPUT ::
|
||||
[$INPUT_ARTIST] Artist [$OUTPUT_ARTIST]
|
||||
[$INPUT_ARTIST] Artist [$(tput setf 4)$OUTPUT_ARTIST$(tput sgr0)]
|
||||
[$INPUT_ALBUM] Album [$OUTPUT_ALBUM]
|
||||
[$INPUT_TRACK] Track [$OUTPUT_TRACK]
|
||||
[$INPUT_TITLE] Title [$OUTPUT_TITLE]
|
||||
|
|
|
@ -401,7 +401,7 @@ echokeymap ()
|
|||
## Dump optical disc to iso
|
||||
clonecd ()
|
||||
{
|
||||
if [ $# -ne 1 ]; then
|
||||
if [ $# -ne 1 ] || [ "$1" = "-h" ]; then
|
||||
echo "Usage: $0 ISO (without extension)"
|
||||
return
|
||||
fi
|
||||
|
|
|
@ -26,7 +26,7 @@ if [ "$OSTYPE" = "linux-gnu" ] ; then
|
|||
[ -n "$(amixer 2>/dev/null | grep PCM)" ] && amixer set PCM 80%
|
||||
|
||||
## External device auto-mounting.
|
||||
[ -n "$(command -v udiskie)" ] && udiskie &
|
||||
command -v udiskie >/dev/null && udiskie &
|
||||
fi
|
||||
|
||||
## This env variable is used by some programs (like ranger and awesome) to get
|
||||
|
|
Loading…
Reference in New Issue