From 7901cd88099101195f6d1c476ebf6e77bcd0d514 Mon Sep 17 00:00:00 2001 From: Russtopia Date: Fri, 21 Aug 2020 19:49:17 -0700 Subject: [PATCH] Update 'bacillus/ci_pushbuild.sh' --- bacillus/ci_pushbuild.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bacillus/ci_pushbuild.sh b/bacillus/ci_pushbuild.sh index 8eba306..56e70e2 100755 --- a/bacillus/ci_pushbuild.sh +++ b/bacillus/ci_pushbuild.sh @@ -38,7 +38,9 @@ go test -v . stage "Test(Authtoken)" ############ echo "Clearing test user $USER ~/.xs_id file ..." -mv ~/.xs_id ~/.xs_id.bak +if [ -f ~/.xs_id ]; then + mv ~/.xs_id ~/.xs_id.bak +fi echo "Setting dummy authtoken in ~/.xs_id ..." echo "localhost:asdfasdfasdf" >~/.xs_id echo "Performing remote command on @localhost via authtoken login ..." @@ -50,7 +52,9 @@ else echo "client cmd performed OK." unset tokentest fi -mv ~/.xs_id.bak ~/.xs_id +if [ -f ~/.xs_id.bak ]; then + mv ~/.xs_id.bak ~/.xs_id +fi ############ stage "Test(S->C)"