signed-commit remote shell (see also https://github.com/dyne/scorsh)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
529 B
22 lines
529 B
#!/bin/sh
|
|
|
|
|
|
. ./scorsh_functions
|
|
|
|
### kill scroshd, if it's running
|
|
if [ -f "${SCORSH_APP}/scorshd.pid" ]; then
|
|
kill -9 $(cat "${SCORSH_APP}/scorshd.pid")
|
|
fi
|
|
|
|
### remove all the folders
|
|
rm -rf ${SCORSH_REPO}
|
|
rm -rf ${SCORSH_APP}
|
|
rm -rf ${REMOTE_REPO}
|
|
rm -rf ${LOCAL_REPO}
|
|
|
|
check "[ ! -d \"${SCORSH_REPO}\" ]" $0 "remove_scorsh_repo"
|
|
check "[ ! -d \"${SCORSH_APP}\" ]" $0 "remove_scorsh_app"
|
|
check "[ ! -d \"${REMOTE_REPO}\" ]" $0 "remove_remote_repo"
|
|
check "[ ! -d \"${LOCAL_REPO}\" ]" $0 "remove_local_repo"
|
|
|
|
return_results
|
|
|