Update: manager.sh
This commit is contained in:
parent
5962d70740
commit
f0da055538
25
manage.sh
25
manage.sh
@ -1,5 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
help(){
|
||||||
|
echo """
|
||||||
|
|
||||||
|
"${0}" [options]
|
||||||
|
|
||||||
|
-d2 Move Diablo II save game files
|
||||||
|
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
|
||||||
|
mv_d2(){
|
||||||
remoteDir=${HOME}/diablo/drive_c/users/mollusk/"Saved Games"/"Diablo II"
|
remoteDir=${HOME}/diablo/drive_c/users/mollusk/"Saved Games"/"Diablo II"
|
||||||
echo "${remoteDir}"
|
echo "${remoteDir}"
|
||||||
if [[ ! -d ./"Diablo II" ]];then
|
if [[ ! -d ./"Diablo II" ]];then
|
||||||
@ -14,3 +26,16 @@ fi
|
|||||||
|
|
||||||
echo "Moving files from ${remoteDir} to $(pwd)/Diablo II"
|
echo "Moving files from ${remoteDir} to $(pwd)/Diablo II"
|
||||||
cp "${remoteDir}"/* "$(pwd)"/"Diablo II"
|
cp "${remoteDir}"/* "$(pwd)"/"Diablo II"
|
||||||
|
}
|
||||||
|
|
||||||
|
case "${1}" in
|
||||||
|
|
||||||
|
-d2)
|
||||||
|
mv_d2
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
help
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user