mirror of
https://github.com/koreader/koreader
synced 2024-11-18 03:25:46 +00:00
Re-order tar CLI args to be closer to other platforms
This commit is contained in:
parent
b6683b7a9f
commit
3bc29aa618
@ -108,7 +108,7 @@ ko_update_check() {
|
||||
BLOCKS="$((FILESIZE / 20))"
|
||||
export CPOINTS="$((BLOCKS / 100))"
|
||||
# shellcheck disable=SC2016
|
||||
${KOREADER_DIR}/tar -C "/mnt/us" --no-same-owner --no-same-permissions --checkpoint="${CPOINTS}" --checkpoint-action=exec='$KOREADER_DIR/fbink -q -y -6 -P $(($TAR_CHECKPOINT/$CPOINTS))' -xf "${NEWUPDATE}"
|
||||
./tar --no-same-permissions --no-same-owner --checkpoint="${CPOINTS}" --checkpoint-action=exec='./fbink -q -y -6 -P $(($TAR_CHECKPOINT/$CPOINTS))' -C "/mnt/us" -xf "${NEWUPDATE}"
|
||||
fail=$?
|
||||
# Cleanup behind us...
|
||||
if [ "${fail}" -eq 0 ]; then
|
||||
@ -118,7 +118,7 @@ ko_update_check() {
|
||||
eips_print_bottom_centered "KOReader will start momentarily . . ." 1
|
||||
else
|
||||
# Huh ho...
|
||||
logmsg "Update failed :("
|
||||
logmsg "Update failed :( (${fail})"
|
||||
eips_print_bottom_centered "Update failed :(" 2
|
||||
eips_print_bottom_centered "KOReader may fail to function properly" 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user