~m-grant-prg/lixbackups/jammy-trunk

« back to all changes in this revision

Viewing changes to src/prg/bash/attbckshare.sh.in

  • Committer: Mark Grant
  • Date: 2020-01-14 10:40:22 UTC
  • mfrom: (1.1.36)
  • Revision ID: m.grant.prg@gmail.com-20200114104022-cx4eop3e91bfnw3n
Merge new upstream development release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
#                               Specify type for numeric variables.     #
143
143
# 19/04/2019    MG      1.3.2   Replace obsolete backticks with $(cmd). #
144
144
# 09/08/2019    MG      1.3.3   Correct getopt CL for proper quoting.   #
 
145
# 11/10/2019    MG      1.3.4   Move script_exit() before it is used.   #
145
146
#                                                                       #
146
147
#########################################################################
147
148
 
149
150
# Init variables #
150
151
##################
151
152
readonly outputprefix="$(basename $0):"
152
 
readonly version=1.3.3                          # Set version variable
 
153
readonly version=1.3.4                          # Set version variable
153
154
readonly etclocation=@sysconfdir@/lixbackups    # Path to etc directory
154
155
readonly packageversion=@pkgversion@            # Version of the package
155
156
 
206
207
        fi
207
208
}
208
209
 
 
210
# Standard function to tidy up and return exit code.
 
211
# Parameters -  $1 is the exit code.
 
212
# No return value.
 
213
script_exit()
 
214
{
 
215
        exit $1
 
216
}
 
217
 
209
218
# Standard function to test command error and exit if non-zero.
210
219
# Parameters - $1 is $?
211
220
# No return value.
216
225
        fi
217
226
}
218
227
 
219
 
# Standard function to tidy up and return exit code.
220
 
# Parameters -  $1 is the exit code.
221
 
# No return value.
222
 
script_exit()
223
 
{
224
 
        exit $1
225
 
}
226
 
 
227
228
# Standard trap exit function.
228
229
# No parameters.
229
230
# No return value.