Skip to content

Commit

Permalink
shift creates error if less arguments are passed to the function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Nov 28, 2023
1 parent df8b718 commit a0c085d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/dracut/80fai-autodiscover/fai-scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ getvar() {
local var
local port

var=$1; shift
srv=$1; shift
port=$1; shift
var=$1
srv=$2
port=$3

: ${port:=$FAI_MONITOR_PORT}
: ${srv:=$monserver}
Expand Down

0 comments on commit a0c085d

Please sign in to comment.