diff options
Diffstat (limited to 'threadcat-del.sh')
-rwxr-xr-x | threadcat-del.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/threadcat-del.sh b/threadcat-del.sh index cd71da6..c1087ba 100755 --- a/threadcat-del.sh +++ b/threadcat-del.sh @@ -1,11 +1,18 @@ #!/bin/bash -THREAD_NAME=$1 +BOARD_NAME=$1 +THREAD_NAME=$2 + +if [ -z "${THREAD_NAME}" ]; then + THREAD_NAME=$BOARD_NAME +else + THREAD_NAME=$BOARD_NAME/$THREAD_NAME +fi if [ ! -z "${THREAD_NAME}" ]; then ssh $THREADCAT_USER "rm /opt/threadcat/$THREAD_NAME" else echo You did not provide a thread name. - echo USAGE: "threadcat del THREAD_NAME" + echo USAGE: "threadcat del [BOARD] THREAD" fi |