#!/bin/bash
source $HOME/.gamerc

if [ ! -z "$1" ]; then
  sendscript $1 <<< "cd ~/DBbackup/; ls -hltra \${GAME_TYPE}*sql | tail -n 12"
else
  sendscript alldb <<< "cd ~/DBbackup/; ls -hltra \${GAME_TYPE}*sql | tail -n 12"
fi
