I'm creating a script that when is run create various alias for various scripts that are in other folders. The script and the other folders are inside a specific folder as shown in the image but it is gonna be executable only when I want too. Assuming this is only gonna be to execute on this machine i don't have to change paths.
I got this in the script that runs perfectly, prints the echo and everything but the alias isn't created. Now if i just do the same alias line out of the script it creates the alias perfectly.
This script I'm creating is sh does it have any influence on this situation ?
Now i only want to use alias because this folder is going to stay in that machine and i'm not going to have other people running these.
What i want is to be able to instead of going to the folders and run the executables i want this script to create the alias so i can call them directly through the prompt like$~ zenmap and it runs.
#!/bin/bash
alias zenmap="/home/user/Desktop/folder/nmap/zenmap/zenmap"
echo "zenmap imported !"
Any clue on what can be happening ?