Skip to content

Commit

Permalink
respin: Install squashfs-tools when needed
Browse files Browse the repository at this point in the history
Respin script fails if squashfs-tools aren't installed.

Detect and install with apt when needed.

Signed-off-by: Jamie Bainbridge <[email protected]>
  • Loading branch information
superjamie authored and flexiondotorg committed Oct 5, 2022
1 parent 4e6ed33 commit ca4c945
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions umpc-ubuntu-respin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ if [ ! -f /usr/bin/xorriso ]; then
apt-get -y install xorriso
fi

if [ ! -f /usr/bin/unsquashfs ]; then
echo "ERROR! Unable to find /usr/bin/unsquashfs. Installing now..."
apt-get -y install squashfs-tools
fi


UMPC=""
OPTSTRING=d:h
while getopts ${OPTSTRING} OPT; do
Expand Down

0 comments on commit ca4c945

Please sign in to comment.