virt-what.in: remove bash-ism
authorA. Gordon <assafgordon@gmail.com>
Mon, 15 Sep 2014 18:48:23 +0000 (14:48 -0400)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 31 Oct 2016 10:14:48 +0000 (06:14 -0400)
Use '/bin/sh' instead of '/bin/bash', with POSIX-compatible function
definitions.

(cherry picked from commit 6382ef1cb5b8c146bfd35912730dccd68ab4b71a)

virt-what.in

index c04203e..1532b90 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash -
+#!/bin/sh -
 # @configure_input@
 # Copyright (C) 2008-2011 Red Hat Inc.
 #
@@ -33,12 +33,12 @@ skip_qemu_kvm=false
 
 VERSION="@VERSION@"
 
-function fail {
+fail() {
     echo "virt-what: $1" >&2
     exit 1
 }
 
-function usage {
+usage() {
     echo "virt-what [options]"
     echo "Options:"
     echo "  --help          Display this help"