Compare commits

...

2 Commits

Author SHA1 Message Date
f0da055538 Update: manager.sh 2021-01-30 11:38:45 -07:00
5962d70740 Update: Juice 2021-01-30 11:26:36 -07:00
2 changed files with 37 additions and 12 deletions

Binary file not shown.

View File

@@ -1,16 +1,41 @@
#!/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
help(){
echo """
echo "Moving files from ${remoteDir} to $(pwd)/Diablo II"
cp "${remoteDir}"/* "$(pwd)"/"Diablo II"
"${0}" [options]
-d2 Move Diablo II save game files
"""
}
mv_d2(){
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"
}
case "${1}" in
-d2)
mv_d2
;;
*)
help
;;
esac