diff --git a/manage.sh b/manage.sh index 48812e2..97d15dc 100755 --- a/manage.sh +++ b/manage.sh @@ -24,14 +24,31 @@ mv_d2(){ exit 1 fi - echo "Moving files from ${remoteDir} to $(pwd)/Diablo II" - cp "${remoteDir}"/* "$(pwd)"/"Diablo II" + case "${1}" in + + --from-remote) + echo "Moving files from ${remoteDir} to $(pwd)/Diablo II" + cp "${remoteDir}"/* "$(pwd)"/"Diablo II" + ;; + + --to-remote) + echo "Moving files to ${remoteDir} from $(pwd)/Diablo II" + cp "$(pwd)"/"Diablo II"/* "${remoteDir}" + ;; + + *) + + echo "--from-remote Move files from real game folder to repo" + echo "--to-remote Move files to real game folder from repo" + ;; + esac + } case "${1}" in -d2) - mv_d2 + mv_d2 "${2}" ;; *)