Skip to content

Commit 2e1de9a

Browse files
committed
scripts/libvirt_pool.sh: return after n
Small fix to return after we echo a variable. Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 7ca3e85 commit 2e1de9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/libvirt_pool.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ get_can_sudo()
1515
# of these mean that can_sudo is "y".
1616
if sudo -nv 2>&1 | grep -q 'may not'; then
1717
echo "n"
18+
return
1819
fi
1920
echo "y"
2021
}

0 commit comments

Comments
 (0)