Skip to content

Commit

Permalink
Fix behavior on merge script failure
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
  • Loading branch information
ecdye committed Aug 13, 2021
1 parent 96d39d3 commit 1d117d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zram-config
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ mergeOverlay() {
ls -la "$ZDIR" "${ZDIR}${BIND_DIR}" "${ZDIR}${ZRAM_DEV}/upper" >> "$ZLOG"
cd /usr/local/lib/zram-config/ || return 1
(yes | ./overlay merge --lowerdir="${ZDIR}${BIND_DIR}" --upperdir="${ZDIR}${ZRAM_DEV}/upper") >> "$ZLOG" 2>&1 || return 1
bash -x -- *.sh >> "$ZLOG" 2>&1 || return 1
bash -x -- *.sh >> "$ZLOG" 2>&1
rm -fv -- *.sh >> "$ZLOG" 2>&1 || return 1
}

Expand Down

0 comments on commit 1d117d2

Please sign in to comment.