Skip to content

Commit

Permalink
Merge pull request #389 from iancoolidge/devel-debian
Browse files Browse the repository at this point in the history
Remove sh-specific redirections.
  • Loading branch information
adrianchiris authored Jan 1, 2023
2 parents 788d76f + 71155ee commit 36d4923
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bindata/scripts/load-kmod.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# chroot /host/ modprobe $1
kmod_name=$(tr "-" "_" <<< $1)
kmod_name=$(echo $1 | tr "-" "_")
kmod_args="${@:2}"
chroot /host/ lsmod | grep "^$1" >& /dev/null

Expand Down
6 changes: 3 additions & 3 deletions hack/vf-netns-switcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ while test $# -gt 0; do

--netns | -n)
input=$2
local_netns=$(cut -s -d ':' -f 1 <<< $input)
local_pfs=$(cut -s -d ':' -f 2 <<< $input)
local_netns=$(echo $input | cut -s -d ':' -f 1)
local_pfs=$(echo $input | cut -s -d ':' -f 2)
input=""

if [[ -z "$local_netns" ]];then
Expand All @@ -37,7 +37,7 @@ provide it in the form --netns <netns>:<pf1>,<pf2> !"

netnses+=("$local_netns")

pfs["$local_netns"]="$(tr , " " <<< $local_pfs)"
pfs["$local_netns"]="$(echo $local_pfs | tr , " ")"

local_netns=""
local_pfs=""
Expand Down

0 comments on commit 36d4923

Please sign in to comment.