mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-10 17:02:43 +02:00
fixed bug with custom-cowsay
This commit is contained in:
1 parent
386913b4a3
commit
fc825e7d3d
1 file changed
+4
-4
@@ -68,10 +68,10 @@ do
|
|||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
SIndex=$(( RANDOM % ${#sentences[@]} ))
|
SIndex=$(( RANDOM % ''${#sentences[@]} ))
|
||||||
index=$(( RANDOM % ${#cows[@]} ))
|
index=$(( RANDOM % ''${#cows[@]} ))
|
||||||
cow="/usr/share/cowsay/cows/${cows[index]}.cow"
|
#cow="/usr/share/cowsay/cows/''${cows[index]}.cow"
|
||||||
cowsay -f "$cow" "${sentences[SIndex]}"
|
cowsay -f "''${cows[index]}" "''${sentences[SIndex]}"
|
||||||
sleep 10
|
sleep 10
|
||||||
clear
|
clear
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in new issue
Block a user