diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak-profile | 2 | ||||
-rwxr-xr-x | bin/ak-sm-filejoiner | 8 | ||||
-rwxr-xr-x | bin/ak-sm-filesplitter | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/bin/ak-profile b/bin/ak-profile index c686f28..f4051eb 100755 --- a/bin/ak-profile +++ b/bin/ak-profile @@ -200,7 +200,7 @@ EOF fi _ak_zblock_pack "profile/add" $(pwd)/data - if [ "$?" -ne 0 ] + if [ $? -ne 0 ] then echo "error??" exit 1 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 diff --git a/bin/ak-sm-filesplitter b/bin/ak-sm-filesplitter index 7365b19..4cbb4e4 100755 --- a/bin/ak-sm-filesplitter +++ b/bin/ak-sm-filesplitter @@ -49,7 +49,7 @@ source $AK_LIBDIR/_ak_log if [ ! -d "$TECHDIR" ] then mkdir -p "$TECHDIR" - if [ "$?" == 0 ] + if [ $? -eq 0 ] then _ak_log_info "Folder $TECHDIR created!" else @@ -65,7 +65,7 @@ fi if [ ! -d "$FILEMAPSDIR" ] then mkdir -p "$FILEMAPSDIR" - if [ "$?" == 0 ] + if [ $? -eq 0 ] then _ak_log_info "Folder $FILEMAPSDIR created!" else @@ -81,7 +81,7 @@ fi if [ ! -d "$CHKDIR" ] then mkdir -p "$CHKDIR" - if [ "$?" == 0 ] + if [ $? -eq 0 ] then _ak_log_info "Folder $CHKDIR created!" else |