If a binary path is given to the setup, use that filename rather than the hardcoded one

This commit is contained in:
wheaney 2024-05-20 14:27:34 -07:00
parent b8e2310461
commit 484b420e40
1 changed files with 9 additions and 1 deletions

View File

@ -43,8 +43,16 @@ else
cp $abs_path $tmp_dir
fi
# if abs_path is present, grab the filename from it
if [ -n "$abs_path" ]
then
filename=$(basename $abs_path)
else
filename="breezyGNOME.tar.gz"
fi
echo "Extracting to: ${tmp_dir}/breezy_gnome"
tar -xf breezyGNOME.tar.gz
tar -xf $filename
pushd breezy_gnome > /dev/null