game-saves/manage.sh

16 lines
391 B
Bash
Executable File

#!/bin/bash
remoteDir=${HOME}/diablo/drive_c/users/mollusk/"Saved Games"/"Diablo II"
echo "${remoteDir}"
if [[ ! -d ./"Diablo II" ]];then
echo "Local save directory does not exist"
exit 1
fi
if [[ ! -d "${remoteDir}" ]];then
echo "Remote directory does not exist"
exit 1
fi
echo "Moving files from ${remoteDir} to $(pwd)/Diablo II"
cp "${remoteDir}"/* "$(pwd)"/"Diablo II"