From ac8ffe0387d686b3263b6cf939eae5cf18237293 Mon Sep 17 00:00:00 2001 From: wingyou Date: Mon, 25 Mar 2024 16:11:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20backup.sh=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JWT/deploy/backup.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/JWT/deploy/backup.sh b/JWT/deploy/backup.sh index 22cf7c1..634aa3c 100755 --- a/JWT/deploy/backup.sh +++ b/JWT/deploy/backup.sh @@ -1,3 +1,10 @@ #!/bin/bash -sudo mv server.jar server.bak.jar +if [ -f server.jar ]; then + sudo mv server.jar server.bak.jar + echo "server.bak.jar create." + exit 0 +fi + +echo "no server.jar file found." +exit 0