Skip to content

Commit e992826

Browse files
committed
reversesshfs: fix indent in shell script template
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 28e5673 commit e992826

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/reversesshfs/reversesshfs.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ i=0
113113
while : ; do
114114
# FIXME: not really robust
115115
if mount | grep "on ${dir}" | egrep -qw "fuse.sshfs|osxfuse"; then
116-
echo '{"return":{}}'
116+
echo '{"return":{}}'
117117
exit 0
118118
fi
119-
sleep 1
120-
if [ $i -ge ${max_trial} ]; then
121-
echo >&2 "sshfs does not seem to be mounted on ${dir}"
122-
exit 1
123-
fi
124-
i=$((i + 1))
119+
sleep 1
120+
if [ $i -ge ${max_trial} ]; then
121+
echo >&2 "sshfs does not seem to be mounted on ${dir}"
122+
exit 1
123+
fi
124+
i=$((i + 1))
125125
done
126126
`
127127
t, err := template.New(scriptName).Parse(scriptTemplate)

0 commit comments

Comments
 (0)