Selaa lähdekoodia

Fix root directory detection in UNIX-like scripts

Patrick-Christopher Mattulat 1 vuosi sitten
vanhempi
commit
c264bf5b50
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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"