Skip to content

Commit

Permalink
adjust cli output formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
domwebber committed Apr 2, 2024
1 parent eff503f commit b200bfa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions extract.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
#!/bin/bash

image=$1
grep_for=$2
extract_to=images/$image

tar_file=image.tar
echo "Extracting $image to $extract_to"
echo "Extracting $image to $extract_to\n"

mkdir -p $extract_to
docker save $image | tar -C $extract_to -xvf -

grep_for=$2

echo "Finding $grep_for in $extract_to..."
echo "\nFinding $grep_for in $extract_to\n"
echo "Found $grep_for in:"

grep -r $grep_for $extract_to

0 comments on commit b200bfa

Please sign in to comment.