~m-grant-prg/mget/jammy

« back to all changes in this revision

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

  • Committer: Mark Grant
  • Date: 2021-03-05 14:16:36 UTC
  • mto: This revision was merged to the branch mainline in revision 40.
  • Revision ID: m.grant.prg@gmail.com-20210305141636-pek25hxm0mj9ftt6
Tags: upstream-1.1.15+rc1
ImportĀ upstreamĀ versionĀ 1.1.15+rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
#                               If get is successful delete entry from  #
154
154
#                               source file, otherwise retain for       #
155
155
#                               possible re-run.                        #
 
156
# 11/10/2019    MG      1.2.2   Move script_exit() before it is used.   #
156
157
#                                                                       #
157
158
#########################################################################
158
159
 
162
163
##################
163
164
 
164
165
readonly outputprefix="$(basename $0):"
165
 
readonly version=1.2.1                  # set version variable
 
166
readonly version=1.2.2                  # set version variable
166
167
readonly packageversion=@pkgversion@    # Version of the complete package
167
168
 
168
169
readonly conffile="$HOME/.mget"
222
223
        fi
223
224
}
224
225
 
 
226
# Standard function to tidy up and return exit code.
 
227
# Parameters -  $1 is the exit code.
 
228
# No return value.
 
229
script_exit()
 
230
{
 
231
        exit $1
 
232
}
 
233
 
225
234
# Standard function to test command error and exit if non-zero.
226
235
# Parameters -  $1 is the exit code, (normally $? from the preceeding command).
227
236
# No return value.
232
241
        fi
233
242
}
234
243
 
235
 
# Standard function to tidy up and return exit code.
236
 
# Parameters -  $1 is the exit code.
237
 
# No return value.
238
 
script_exit()
239
 
{
240
 
        exit $1
241
 
}
242
 
 
243
244
# Standard trap exit function.
244
245
# No parameters.
245
246
# No return value.