aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-mod
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-mod')
-rw-r--r--mayor-mod/update/rev4332-hoz_javitas/processUpdateScripts.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/mayor-mod/update/rev4332-hoz_javitas/processUpdateScripts.sh b/mayor-mod/update/rev4332-hoz_javitas/processUpdateScripts.sh
index a63578e6..eb931694 100644
--- a/mayor-mod/update/rev4332-hoz_javitas/processUpdateScripts.sh
+++ b/mayor-mod/update/rev4332-hoz_javitas/processUpdateScripts.sh
@@ -46,7 +46,7 @@ fi
# --
run_script() {
- FILEELEJE=`echo $FILE | cut -f 1 -d '-'`
+ FILEELEJE=$(basename $FILE | cut -f 1 -d '-')
FILEREV=${FILEELEJE: -6}
LOGSQL=""
if [ "$FILEREV" != "" ]; then
@@ -55,14 +55,14 @@ run_script() {
fi
fi
if [ ! "${FILEREV}" \< "${REVSTR}" ]; then
- FILEEXT=`echo $FILE | cut -f 2 -d '.'`
+ FILEEXT=$(basename $FILE | cut -f 2 -d '.')
if [ "$FILEEXT" == "sh" ]; then
echo " - Szkript futtatása ($FILE)..."
. $FILE
if [ $? != 0 ]; then exit 13; fi
elif [ "$FILEEXT" == "sql" ]; then
echo " - SQL utasítások végrehajtása ($FILE)..."
- FILEDB=`echo $FILE | cut -f 1 -d '.' | cut -f 3 -d '-'`
+ FILEDB=$(basename $FILE | cut -f 1 -d '.' | cut -f 3 -d '-')
case "$FILEDB" in
naplo)
DBS=$DB_NAPLO