Skip to content

Commit

Permalink
Fix watchping main script: local is only possible inside a function
Browse files Browse the repository at this point in the history
Signed-off-by: Pau Escrich <p4u@dabax.net>
  • Loading branch information
p4u committed Feb 22, 2017
1 parent 4052a0a commit e59ab3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/watchping/files/usr/bin/watchping
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh

local interface="${1:?}"
local timeout="${2:?}"
local pinghosts="${3:?}"
local pinginterval="${4:?}"
local hookname="${5:?}"
interface="${1:?}"
timeout="${2:?}"
pinghosts="${3:?}"
pinginterval="${4:?}"
hookname="${5:?}"

run_hooks () {
reason="$1"
Expand Down

0 comments on commit e59ab3c

Please sign in to comment.