From 30a2bc6cc950bcd460e5a3651ab869a732a0f50b Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 30 Jun 2024 07:01:15 +0300 Subject: Refactoring --- bin/ak-sm-filejoiner | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/ak-sm-filejoiner') diff --git a/bin/ak-sm-filejoiner b/bin/ak-sm-filejoiner index 9264a9a..f4165f9 100755 --- a/bin/ak-sm-filejoiner +++ b/bin/ak-sm-filejoiner @@ -21,7 +21,7 @@ TMPWD="/tmp/rjs" if [ ! -d "$TMPWD" ] then mkdir -p "$TMPWD" - if [ "$?" != 0 ] + if [ $? -ne 0 ] then echo "Can't create $TMPWD dir" exit 1 @@ -33,7 +33,7 @@ MAPSDIR="$AK_WORKDIR/fmp" CHKDIR="$AK_WORKDIR/ftr" cd $CHKDIR -if [ "$?" != 0 ] +if [ $? -ne 0 ] then echo "Can't get dir" exit 1 @@ -51,7 +51,7 @@ then bash script - if [ "$?" != 0 ] + if [ $? -ne 0 ] then echo "Error executing copy script" exit 1 @@ -73,7 +73,7 @@ then # We check if everything is okay sha512sum -c $MAPSDIR/$MAPSFILE - if [ "$?" != "0" ]; then + if [ $? -ne 0 ]; then _ak_log_error "Error while checking sums" exit 1 fi -- cgit v1.2.3