-2

I have a linux .sh file with something like:

scripts_dir='/opt/myapp/scripts'
[ -f "${scripts_dir}/common.sh" ] && . "${scripts_dir}/common.sh"

scripts_dir defines a variable to represent a directory.

What are we then trying to do in next line?

Mandroid
  • 6,200
  • 12
  • 64
  • 134

1 Answers1

0

if child script file exists, run the child script and will update current shell environment of the running script.

Run a shell file in the current environment

SeamanYen
  • 44
  • 4