Skip to content

Commit 070cd0f

Browse files
committed
Use _sleep instead of sleep
1 parent 8608e9c commit 070cd0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy/truenas_ws.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ _ws_check_jobid() {
121121
# n/a
122122
_ws_get_job_result() {
123123
while true; do
124-
sleep 2
124+
_sleep 2
125125
_ws_response=$(_ws_call "core.get_jobs" "[[\"id\", \"=\", $1]]")
126126
if [ "$(printf "%s" "$_ws_response" | jq -r '.[]."state"')" != "RUNNING" ]; then
127127
_ws_result="$(printf "%s" "$_ws_response" | jq '.[]."result"')"
@@ -322,7 +322,7 @@ truenas_ws_deploy() {
322322
_info "Restarting WebUI..."
323323
_ws_response=$(_ws_call "system.general.ui_restart")
324324
_info "Waiting for UI restart..."
325-
sleep 15
325+
_sleep 15
326326

327327
########## Certificates
328328

0 commit comments

Comments
 (0)