Skip to content

Commit

Permalink
my bad, commit wrong file
Browse files Browse the repository at this point in the history
  • Loading branch information
buihien224 committed Oct 5, 2021
1 parent 2363d4f commit 8ddb760
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
18 changes: 15 additions & 3 deletions hungsvvl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@ if [[ -f "system.img" ]]
then
echo -e "\e[1;33mGenerating..........\e[0m"
systemsize=$(find "system.img" -printf "%s")
wget -q $bhlnk
unzip dynamic1.zip
rm dynamic1.zip
echo "check if the template exists"
if [[ -f "dynamic1.zip" ]]
then
echo "extracting template"
unzip dynamic1.zip
else
echo "downloading template"
wget -q $bhlnk
if [[ -f "dynamic1.zip" ]]
then
unzip dynamic1.zip
else echo "report to @bhlnk"
exit 1
fi
fi
echo -e "\e[1;33mCoping system.img...\e[0m"
cp system.img tmp
sed -i "s/test/$codename/g" $scpt
Expand Down
19 changes: 3 additions & 16 deletions mktemplate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,9 @@ if [[ -f "system.img" ]]
then
echo -e "\e[1;31mGenerating..........\e[0m"
systemsize=$(find "system.img" -printf "%s")
echo "check if the template exists"
if [[ -f "dynamic1.zip" ]]
then
echo "extracting template"
unzip dynamic1.zip
else
echo "downloading template"
wget -q $bhlnk
if [[ -f "dynamic1.zip" ]]
then
unzip dynamic1.zip
else echo "report to @bhlnk"
exit 1
fi
unzip dynamic1.zip
fi
wget -q $bhlnk
unzip dynamic1.zip
rm dynamic1.zip
echo -e "\e[1;31mCoping system.img...\e[0m"
cp system.img tmp
sed -i "s/test/$codename/g" $scpt
Expand Down

0 comments on commit 8ddb760

Please sign in to comment.