From 3c478f840b3d43d337b98599957bedf2797b42bf Mon Sep 17 00:00:00 2001 From: rustdesk Date: Thu, 12 May 2022 21:10:05 +0800 Subject: [PATCH] clean then push --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index dcaf3b1..bcb0bbc 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,6 +2,6 @@ hugo --minify cd public; tar czf x * scp x sg:/tmp/ -ssh sg "sudo tar xzf /tmp/x -C /var/www/html/rustdesk.com/docs/ && /bin/rm /tmp/x && sudo chown www-data:www-data /var/www/html/rustdesk.com/docs/ -R" +ssh sg "sudo rm -rf /var/www/html/rustdesk.com/docs/* && sudo tar xzf /tmp/x -C /var/www/html/rustdesk.com/docs/ && /bin/rm /tmp/x && sudo chown www-data:www-data /var/www/html/rustdesk.com/docs/ -R" /bin/rm x cd -