From 6c56fae8d1888d78b64771c4a10dce3ca214ed32 Mon Sep 17 00:00:00 2001 From: mollusk Date: Sat, 30 Jan 2021 09:58:48 -0700 Subject: [PATCH] Create basic management script --- manage.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 manage.sh diff --git a/manage.sh b/manage.sh new file mode 100755 index 0000000..3386ec1 --- /dev/null +++ b/manage.sh @@ -0,0 +1,16 @@ +#!/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" \ No newline at end of file