I have a bash script called
a located in
/home/agrillet/ where I do this command:
BOOTSTRAP_MODIF="stat -c %Y '/home/agrillet/a'"
The output is:
./a: line 60: stat -c %Y '/home/agrillet/a': No such file or directory
But when I run the same command in my terminal, it works:
$ stat -c %Y '/home/agrillet/a' 1517831544
I am not running the command as root in both cases, can someone explain what is happening and how to be able to get information about the script while running it?
If I use another command in the script such as
cat /home/agrillet/a, I am able to print the script from the script itself.