From a667c84b93333b6ff58240aa3fa6ecd5e79bd0ca Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Thu, 26 Apr 2012 20:56:00 +1200 Subject: [PATCH] Remove bashisms for function definitions. --- run-backup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run-backup b/run-backup index 0eb54f3..5e9542f 100755 --- a/run-backup +++ b/run-backup @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Conditionally run obnam. # @@ -15,7 +15,7 @@ SOURCE=${SOURCE:-/home /etc} WORKDIR=/var/lib/etc-obnam # Check that the host is local, support both IPv4 and IPv6. -function check_host() { +check_host() { local type=$1 if [ "x$type" != "xA" -a "x$type" != "xAAAA" ] then @@ -68,7 +68,7 @@ function check_host() { # Grab enough details to hopefully be able to reconstuct the installed # packages. -function capture_debconf_info() { +capture_debconf_info() { # Keep a list of the installed files dpkg --get-selections > $WORKDIR/installed.packages.new if [ $? -eq 0 ]; then -- 2.30.2