Skip to content

Commit

Permalink
v1.0.4: leverage grep more idiomatically
Browse files Browse the repository at this point in the history
  • Loading branch information
makesourcenotcode committed Dec 4, 2023
1 parent 53ddff8 commit bb1b0c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ material can be recovered via forensic techniques such as file carving.

=== VERSION ===

1.0.3
1.0.4

=== USAGE ===

Expand Down Expand Up @@ -37,8 +37,13 @@ Worst comes to worst try editing out extra bytes after any
'-----END PGP PRIVATE KEY BLOCK-----' bytes in the recovered files.

Other than maybe GnuPG during the validation phase Dodge has no dependencies on
account of having been written in portable POSIX sh and should work out of the
box on any UNIX like system.
account of having been written in portable POSIX sh. We do unfortunately make
some limited use of grep features not strictly guaranteed by POSIX but which are
nonetheless present in Linux, FreeBSD, NetBSD, OpenBSD, DragonFlyBSD, and macOS.
You'd have to be running this on some extremely exotic rescue OS before having
issues due to this functionality being missing. And if that turns out to be the
case just get GNU Coreutils from https://www.gnu.org/software/coreutils/ and
continue on.

=== IMPORTANT NOTE FOR THE MORE TECHNICAL USERS WHO CAN ACT ON IT ===

Expand Down Expand Up @@ -160,6 +165,7 @@ single time I tried using it. Your luck may be better.

=== CHANGELOG ===

v1.0.4: leverage grep more idiomatically
v1.0.3: fix documentation bugs
v1.0.2: fix documentation bugs
v1.0.1: mention extundelete in documentation
Expand Down
2 changes: 1 addition & 1 deletion dodge
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ assert_usability_of_image_file(){
echo either it does not exist or your user has insufficient permissions
exit 1; fi;}

is_valid_positive_integer(){ echo $1 | grep '^[1-9][0-9]*$' >/dev/null;}
is_valid_positive_integer(){ echo $1 | grep -q '^[1-9][0-9]*$';}

assert_validity_of_byte_count_to_carve_out(){
if ! is_valid_positive_integer "$1"; then
Expand Down

0 comments on commit bb1b0c1

Please sign in to comment.