修改登录后提示代码有点问题吧
#!bin/bash
# call cowsay after login
animal=$(ls /usr/lib/node_modules/cowsay/cows | shuf -n 1)
declare -i name_length=${#animal}-4
# pass sentence to cowsay with random animal
fortune | cowsay -f ${animal:0:$name_length}
改成这样就对了
IP属地:湖北