Skip to content

Commit 970cb37

Browse files
committed
SC updates
1 parent c86c425 commit 970cb37

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/ghe-host-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ if [ "$CLUSTER" == "true" ] ; then
133133
first=true
134134
# echo $nodes | while read -r node; do
135135
for node in $nodes; do
136-
if ! $(echo "set -o pipefail; ssh "$node" -- 'touch "$FILE_TO_TEST" && rm "$FILE_TO_TEST"'" | ghe-ssh "$host" /bin/bash); then
136+
if ! echo "set -o pipefail; ssh $node -- 'touch $FILE_TO_TEST && rm $FILE_TO_TEST'" | ghe-ssh "$host" /bin/bash; then
137137
#echo "File system is writable on $node"
138138
#else
139139
echo "File system is not writeable on $node" 1>&2

test/test-ghe-host-check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ begin_test "ghe-host-check fails when encountering RO file-system"
134134
ghe-ssh "$GHE_HOSTNAME" -- 'chmod a-w -R "~/tmp"'
135135

136136
# File creation fails for CLUSTER
137-
! FILE_TO_TEST="~/tmp/test" CLUSTER=true ghe-host-check
138-
FILE_TO_TEST="~/tmp/test" CLUSTER=false ghe-host-check
137+
! FILE_TO_TEST="$HOME/tmp/test" CLUSTER=true ghe-host-check
138+
FILE_TO_TEST="$HOME/tmp/test" CLUSTER=false ghe-host-check
139139
)
140140
end_test

0 commit comments

Comments
 (0)