Merge pull request #185 from freddii/master

fixed typos
This commit is contained in:
Drew Bonasera 2021-01-23 16:10:45 -05:00 committed by GitHub
commit 9d9c0dd32c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
# PiShrink # # PiShrink #
PiShrink is a bash script that automatically shrink a pi image that will then resize to the max size of the SD card on boot. This will make putting the image back onto the SD card faster and the shrunk images will compress better. PiShrink is a bash script that automatically shrink a pi image that will then resize to the max size of the SD card on boot. This will make putting the image back onto the SD card faster and the shrunk images will compress better.
In addition the shrinked image can be compressed with gzip and xz to create an even smaller image. Parallel compression of the image In addition the shrunk image can be compressed with gzip and xz to create an even smaller image. Parallel compression of the image
using multiple cores is supported. using multiple cores is supported.
## Usage ## ## Usage ##
@ -24,7 +24,7 @@ If you specify the `newimagefile.img` parameter, the script will make a copy of
* `-s` prevents automatic filesystem expansion on the images next boot * `-s` prevents automatic filesystem expansion on the images next boot
* `-v` enables more verbose output * `-v` enables more verbose output
* `-r` will attempt to repair the filesystem using aditional options if the normal repair fails * `-r` will attempt to repair the filesystem using additional options if the normal repair fails
* `-z` will compress the image after shrinking using gzip. `.gz` extension will be added to the filename. * `-z` will compress the image after shrinking using gzip. `.gz` extension will be added to the filename.
* `-Z` will compress the image after shrinking using xz. `.xz` extension will be added to the filename. * `-Z` will compress the image after shrinking using xz. `.xz` extension will be added to the filename.
* `-a` will use option -f9 for pigz and option -T0 for xz and compress in parallel. * `-a` will use option -f9 for pigz and option -T0 for xz and compress in parallel.

View File

@ -17,7 +17,7 @@ function info() {
} }
function error() { function error() {
echo -n "$SCRIPTNAME: ERROR occured in line $1: " echo -n "$SCRIPTNAME: ERROR occurred in line $1: "
shift shift
echo "$@" echo "$@"
} }