Skip to content

Commit

Permalink
Update fakewebsite.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HamedAp authored Oct 27, 2023
1 parent cd04cb0 commit 8d69edb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fakewebsite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ else
fi

RandomHTML=$(a=(*); echo ${a[$((RANDOM % ${#a[@]}))]} 2>&1)
msg_inf "Random template name: ${RandomHTML}"
echo "Random template name: ${RandomHTML}"

if [[ -d "${RandomHTML}" && -d "/var/www/html/" ]]; then
cp -a ${RandomHTML}/. "/var/www/html/"
clear
msg_ok "Fake Website Installed ! :) "
echo "Fake Website Installed ! :) "
else
msg_err "Extraction error!"
echo "Extraction error!"
fi

0 comments on commit 8d69edb

Please sign in to comment.