#!/bin/bash
echo -e "
 ____                      _   ____
|  _ \ __ _ _ __ _ __ ___ | |_/ ___|  ___  ___ 
| |_) / _\` | '__| '__/ _ \| __\___ \ / _ \/ __|
|  __/ (_| | |  | | | (_) | |_ ___) |  __/ (__ 
|_|   \__,_|_|  |_|  \___/ \__|____/ \___|\___|

"

export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH

echo -e "Executing \033[1;95m$*\033[1;0m"
cmd_exec=$(echo "$1" | cut -d " " -f 1)
which "$cmd_exec" 1>/dev/null
if [ $? -eq 1 ]; then
	echo -e "Command \033[1;95m$cmd_exec\033[1;0m cannot be found.\nPlease report this bug to \033[1;96mteam@parrotsec.org\033[1;0m\n"
  $SHELL -s
else
  sudo $* || true
  sudo "$SHELL" -s
fi
