我希望它从数组中选择一个项目并显示它,现在它正在显示它们。
以下是我在收到后挂钩结束时所拥有的内容:
# Array with expressions
expressions=("You upload" "Dude what's that smell?" "Some Bytes are Missing!")
# Seed random generator
RANDOM=$$$(date +%s)
# Get random expression...
selectedexpression=${expressions[$RANDOM % ${#expressions[@]} ]}
# Write to Shell
echo $selectedexpression