Skip to content

Commit

Permalink
fix exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
rzrbld committed Nov 11, 2022
1 parent bb03af4 commit 07ba5ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions init_iso_img.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -ue
#!/bin/bash

FILE="/iso.img"

Expand All @@ -10,7 +10,7 @@ resize2fs_status="$(systemctl is-enabled armbian-resize-filesystem)"
if [[ $resize2fs_status == "enabled" ]]; then
sleep 5
./$0
exit 1
exit 0
fi

free="$(df -k / | tail -n1 | awk '{print $4}')"
Expand Down
2 changes: 1 addition & 1 deletion mode.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash -eu
#! /bin/bash

IDIR="${BASH_SOURCE%/*}"
if [[ ! -d "$IDIR" ]]; then IDIR="$PWD"; fi
Expand Down

0 comments on commit 07ba5ae

Please sign in to comment.