I created a shell script which runs from the desktop (createdirectories.sh) which I have put the following
However when I try to run the file from the desktop, it just opens in text editor. It has a cog icon on the file so looks like it should work correctly.
Code: Select all
#!/bin/bash sudo mkdir /home/pi/usb sudo mkdir /home/pi/usb/4TB sudo mkdir /home/pi/usb/2TB1 sudo mkdir /home/pi/usb/2TB2 sudo mkdir /home/pi/usb/2TB3
Can anyone advise what has gone wrong? Or am I just doing something wrong?