Files
dotfiles/scripts/shell/loop.sh
2024-06-19 07:57:32 -03:00

19 lines
263 B
Bash
Executable File

#!/bin/bash
command="$@"
if [ -z "$command" ]; then
echo "Please provide a command. Example: loop.sh echo foo"
exit 1
fi
while true; do
clear
eval $command
echo ""
echo "[loop.sh] Done!"
echo "[loop.sh] Press any key to continue..."
read
done