Pārlūkot izejas kodu

Fix root directory detection in UNIX-like scripts

Patrick-Christopher Mattulat 1 gadu atpakaļ
vecāks
revīzija
c264bf5b50
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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"