Skip to content

Commit

Permalink
jobs/scripts/common: Drop duplicate shell options
Browse files Browse the repository at this point in the history
  • Loading branch information
anoopcs9 committed Jul 9, 2024
1 parent 5e13f20 commit 0cc5d2d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions jobs/scripts/common/get-node.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
# A script that reserve nodes from pool

set +x

mkdir -p ~/.config

cat > ~/.config/duffy <<EOF
Expand Down
2 changes: 0 additions & 2 deletions jobs/scripts/common/return-node.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
# A script that releases nodes from session ids

set +x

SESSION_ID=$(cat "${WORKSPACE}"/session_id)

duffy client retire-session "${SESSION_ID}" > /dev/null
3 changes: 2 additions & 1 deletion jobs/scripts/common/scp.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set +x
#!/bin/bash

scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /duffy-ssh-key/ssh-privatekey root@$(cat $WORKSPACE/hosts):
ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@$(cat $WORKSPACE/hosts) "chmod 0600 ~/ssh-privatekey"

0 comments on commit 0cc5d2d

Please sign in to comment.