Skip to content

Commit

Permalink
fix error on check exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
per2jensen committed Mar 2, 2024
1 parent 3784c0b commit bb0acf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ if [[ $REMOVE_SPECIFIC_ARCHIVE != "" ]]; then
CATALOG_NO=$(echo "$ARCHIVE_LINE"|grep -E "^\s+[0-9]+" -o|grep -E [0-9]+ -o)
log "found archive \"$REMOVE_SPECIFIC_ARCHIVE\" with CATALOG_NO: $CATALOG_NO"
dar_manager --base "$MOUNT_POINT"/"$CATALOG" --delete $CATALOG_NO
_RESULT=$?
RESULT=$?
if [[ "$RESULT" == "0" ]]; then
log "CATALOG_NO: $CATALOG_NO was removed from $CATALOG"
else
log_error "dar_manager encountered an error, exit code: $_RESULT"
log_error "dar_manager encountered an error, exit code: $RESULT"
exit 1
fi
break
Expand Down

0 comments on commit bb0acf7

Please sign in to comment.