Compare commits
No commits in common. "7d9fc7cb2300f13bbf3ab1fce743fb35eb394fd4" and "534d417b86e841d6b73704ff80986ea9cb26b2e7" have entirely different histories.
7d9fc7cb23
...
534d417b86
@ -28,22 +28,3 @@ exec_process_substitution () {
|
|||||||
printf '%s' "$__result"
|
printf '%s' "$__result"
|
||||||
return $__result_code
|
return $__result_code
|
||||||
}
|
}
|
||||||
|
|
||||||
usage () {
|
|
||||||
echo "Usage: $PROGRAM [--file config] [--?] [--help] [--version] [--dbg]"
|
|
||||||
# UpdateController.conf"
|
|
||||||
}
|
|
||||||
|
|
||||||
usage_and_exit () {
|
|
||||||
usage
|
|
||||||
exit $1
|
|
||||||
}
|
|
||||||
|
|
||||||
version () {
|
|
||||||
echo "$PROGRAM version $VERSION"
|
|
||||||
}
|
|
||||||
|
|
||||||
error () {
|
|
||||||
echo "$@" 1>&2
|
|
||||||
usage_and_exit 1
|
|
||||||
}
|
|
||||||
|
54
update_psa
54
update_psa
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# set -x
|
# set -x
|
||||||
|
|
||||||
source ./general_utils
|
|
||||||
source ./log_helpers
|
source ./log_helpers
|
||||||
source ./git_helpers
|
source ./git_helpers
|
||||||
|
|
||||||
@ -163,53 +162,18 @@ update() {
|
|||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
if [ -z $IFS ]; then
|
if [ $# -ne 1 ] ; then
|
||||||
IFS=$'\n'
|
echo "Usage: $0 filename"
|
||||||
fi
|
exit 1
|
||||||
|
else
|
||||||
readonly PROGRAM=`basename $0`
|
if [ -z $IFS ]; then
|
||||||
readonly VERSION="0.8.0"
|
IFS=$'\n'
|
||||||
|
fi
|
||||||
config_filename=""
|
|
||||||
|
if read_config "$1" ; then
|
||||||
while test $# -gt 0; do
|
|
||||||
case $1 in
|
|
||||||
--file | --fil | --fi | --f | -file | -fil | -fi | -f )
|
|
||||||
__conf_file=yes
|
|
||||||
;;
|
|
||||||
--help | -hel | --he | --h | '--?' | -help | -hel | -he | -h | '-?' )
|
|
||||||
usage_and_exit 0
|
|
||||||
;;
|
|
||||||
--version | --versio | --versi | --vers | --ver | --ve | --v | \
|
|
||||||
-version | -versio | -versi | -vers | -ver | -ve | -v )
|
|
||||||
version
|
|
||||||
;;
|
|
||||||
--dbg | --db | --d | -dbg | -db | -d )
|
|
||||||
set_dbg_level $DEBUG
|
|
||||||
;;
|
|
||||||
-*)
|
|
||||||
error "Unrecognized option: $1"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
if [ "$__conf_file" = "yes" ]; then
|
|
||||||
config_filename="$1"
|
|
||||||
__conf_file=""
|
|
||||||
else
|
|
||||||
error "Unrecognized parameter string: $1"
|
|
||||||
fi
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
|
|
||||||
if ! [ -z "$config_filename" ]; then
|
|
||||||
if read_config "$config_filename" ; then
|
|
||||||
# set -x
|
# set -x
|
||||||
if clone_customer_repository $customer_repository_path ; then
|
if clone_customer_repository $customer_repository_path ; then
|
||||||
update
|
update
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
error "config-file missing"
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user