Hello, i'm having a little problem lately :C for some weird reason my languages in kali aka Ruby, Python, Git Bash Shells stopped working what i mean its that they kept on saying errors when the command is right.
Example i have created a script called ZeOg wich is a toolkit and i was working on a brute-forcer script and suddenly when i made it errors within the right commands....
After i wanted to scan a website with WPscan and boom error with ruby...........
I said Python before so far i didn't encounter any problems with Python but Ruby is based on Python so i will soon have problems with it.
This happened since i did the Kali update, its starting to annoy me a lot... so if someone could help me thanks...

Error codes etc:

Firstly my ZeOg script: Working code:

echo ' ▄▀▀▀▀▄ ▄▀▀█▄▄▄▄ ▄▀▀▀▀▄ ▄▀▀▀▀▄'
echo ' █ ▄▀ ▐ ▄▀ ▐ █ █ █ '
echo ' ▐ ▄▄▀▀ █▄▄▄▄▄ █ █ █ ▀▄▄'
echo ' █ █ ▌ ▀▄ ▄▀ █ █ █ '
echo ' ▀▄▄▄▄▀ ▄▀▄▄▄▄ ▀▀▀▀ ▐▀▄▄▄▄▀ ▐'
echo ' ▐ █ ▐ ▐ '
echo ' ▐ '
echo " ${red}+------------------------------------------------------------+"
echo " ${orange}| ZeOg |"
echo " ${lightyellow}| Written by |"
echo " ${lightgreen}| Ghosty/DeaDHackS |"
echo " ${green}| One Of The Most Advanced |"
echo " ${lightblue}| Toolkits & Scripts Manager |"
echo " ${red}+------------------------------------------------------------+"
echo
echo "${bold}IMPORTANT: Be sure that ZeOg is on the desktop."
echo '[1]. Use/info default scripts. [7]. Jump To Metasploit Console.'
echo '[2]. Download third party scripts. [8]. Update Kali Linux.'
echo [3]. About.
echo [4]. Help.
echo [5]. Update.
echo [6]. Restart ZeOg.
read -p "What do you wish to procced?:" choice1


if [ $choice1 == 1 ]
then
echo "${lightgreen}[+]Launching shell...."
exec /root/Desktop/ZeOgv3/Config/'Default Scripts'/List.sh
fi
if [ $choice1 == 2 ]
then
echo "${lightgreen}[+]Launching shell...."
exec /root/Desktop/ZeOgv3/Config/Downloaded-scripts/download-list.sh
fi
if [ $choice1 == 3 ]
then
echo "${lightgreen}[+]Launching shell...."
exec /root/Desktop/ZeOgv3/Config/about.sh
fi
if [ $choice1 == 4 ]
then
echo "${lightgreen}[+]Launching shell...."
exec /root/Desktop/ZeOgv3/Config/help.sh
fi
if [ $choice1 == 5 ]
then
echo "${bold}[+]Launching Update...."
echo "${bold}[+]The Update will be saved at download!"
exec /root/Desktop/ZeOgv3/Config/update.sh
fi
if [ $choice1 == 6 ]
then
exec
/root/Desktop/ZeOgv3/Config/ZeOg.sh
fi
if [ $choice1 == 7 ]
then
msfconsole
fi
if [ $choice1 == 8 ]
then
echo "$lightgreen[+]Updating your Kali Linux..."
apt-get update && apt-get upgrade || echo "$red[!]Oops something went wrong!"
fi

This script works like no error but then the "broken" script within the RIGHT commands:

I couldn't make it have the error but note it wasn't working.
basically this is the coding

if [ $passwordpath == 1 ]
then
set passwordpath = <rockyou.txt path it doesn't have this command tho>
fi

The thing is after it says it doesn't recognize fi command??
fi is to end the if command.....
so yeah i don't know...
After for WPscan:

/usr/lib/ruby/2.3.0/fileutils.rb:254:in `mkdir': Read-only file system @ dir_s_mkdir - /usr/share/wpscan/cache/browser/274b7d56797c086798b9a66bf35f1ef0 (Errno::EROFS)
from /usr/lib/ruby/2.3.0/fileutils.rb:254:in `fu_mkdir'
from /usr/lib/ruby/2.3.0/fileutils.rb:228:in `block (2 levels) in mkdir_p'
from /usr/lib/ruby/2.3.0/fileutils.rb:226:in `reverse_each'
from /usr/lib/ruby/2.3.0/fileutils.rb:226:in `block in mkdir_p'
from /usr/lib/ruby/2.3.0/fileutils.rb:211:in `each'
from /usr/lib/ruby/2.3.0/fileutils.rb:211:in `mkdir_p'
from /usr/share/wpscan/lib/common/cache_file_store.rb:27:in `initialize'
from /usr/share/wpscan/lib/common/browser.rb:51:in `new'
from /usr/share/wpscan/lib/common/browser.rb:51:in `initialize'
from /usr/share/wpscan/lib/common/browser.rb:64:in `new'
from /usr/share/wpscan/lib/common/browser.rb:64:in `instance'
from ./wpscan.rb:527:in `ensure in main'
from ./wpscan.rb:528:in `main'
from ./wpscan.rb:532:in `<main>'

The command was ruby /usr/share/wpscan/wpscan.rb --url http://sitewichiscensored/ and then it got me this error above.... :C it was working like 5 days ago just like the Git Bash Shells.... *** is happeing xD please someone help me .