mirror of
https://github.com/lukechilds/dockerpi.git
synced 2026-01-23 02:14:37 +00:00
Add helpful extraction method
This commit is contained in:
parent
151aa1f623
commit
d0e67f0813
1 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,8 @@ image_path="/data/filesystem.img"
|
|||
zip_path="/filesystem.zip"
|
||||
|
||||
if [ ! -e $image_path ] && [ -e $zip_path ]; then
|
||||
echo "No filesystem detected at ${image_path}!"
|
||||
echo "Extracting..."
|
||||
unzip $zip_path
|
||||
mv *.img $image_path
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue