aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-sm-filejoiner
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-30 07:01:15 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-30 07:01:15 +0300
commit30a2bc6cc950bcd460e5a3651ab869a732a0f50b (patch)
treeff9abace41c2d356301f0fcd72211ee974c7efb9 /bin/ak-sm-filejoiner
parent35ddac1871fbbc608417e1b1ec2012bf09687edd (diff)
downloadarching-kaos-tools-30a2bc6cc950bcd460e5a3651ab869a732a0f50b.tar.gz
arching-kaos-tools-30a2bc6cc950bcd460e5a3651ab869a732a0f50b.tar.bz2
arching-kaos-tools-30a2bc6cc950bcd460e5a3651ab869a732a0f50b.zip
Refactoring
Diffstat (limited to 'bin/ak-sm-filejoiner')
-rwxr-xr-xbin/ak-sm-filejoiner8
1 files changed, 4 insertions, 4 deletions
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