]> git.etc.gen.nz Git - etc-obnam.git/commitdiff
Remove bashisms for function definitions.
authorAndrew Ruthven <andrew@etc.gen.nz>
Thu, 26 Apr 2012 08:56:00 +0000 (20:56 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Thu, 26 Apr 2012 08:56:00 +0000 (20:56 +1200)
run-backup

index 0eb54f3f5736dd7cfc8b83d1f42b93d2c9a91268..5e9542f19d040c190d8c881dbf02952628779cd8 100755 (executable)
@@ -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