Ver Fonte

Fix root directory detection in UNIX-like scripts

Patrick-Christopher Mattulat há 1 ano atrás
pai
commit
c264bf5b50
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      config/scripts/init.sh
  2. 1 1
      config/scripts/init.zsh

+ 1 - 1
config/scripts/init.sh

@@ -3,7 +3,7 @@
 project_name="Lynar Studios - Standard Library"
 
 script_directory="$PWD"
-root_directory=$(dirname $script_directory)
+root_directory=$(dirname $(dirname $script_directory))
 test_directory="$root_directory/test"
 test_resources_directory="$test_directory/resources"
 test_file_name="no-writable.txt"

+ 1 - 1
config/scripts/init.zsh

@@ -3,7 +3,7 @@
 project_name="Lynar Studios - Standard Library"
 
 script_directory="$PWD"
-root_directory=$(dirname $script_directory)
+root_directory=$(dirname $(dirname $script_directory))
 test_directory="$root_directory/test"
 test_resources_directory="$test_directory/resources"
 test_file_name="no-writable.txt"