File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 53
53
# read -e -p "Upgrade to version (e.g. 0.59.0): " VERSION
54
54
55
55
interactive=true
56
+ check_version=true
56
57
57
58
while test $# -gt 0; do
58
59
case $1 in
@@ -63,13 +64,18 @@ while test $# -gt 0; do
63
64
echo
64
65
echo " Options:"
65
66
echo " -a Automatic mode"
67
+ echo " -C Ignore version check"
66
68
echo " -h, --help Help"
67
69
quit
68
70
;;
69
71
-a)
70
72
interactive=false
71
73
shift
72
74
;;
75
+ -C)
76
+ check_version=false
77
+ shift
78
+ ;;
73
79
esac
74
80
done
75
81
@@ -81,7 +87,7 @@ OLDVERSION=$(cat $BIN/$DEST/_VERSION.txt || echo "")
81
87
echo -e " \nUpgrade phpMyAdmin $VERSION "
82
88
echo -e " Current version: $OLDVERSION \n"
83
89
84
- if [ " $VERSION " = " $OLDVERSION " ]; then
90
+ if [ " $VERSION " = " $OLDVERSION " ] && $check_version ; then
85
91
echo " Versions are equal."
86
92
quit
87
93
fi
You can’t perform that action at this time.
0 commit comments