소스 검색

Fix root directory detection in UNIX-like scripts

Patrick-Christopher Mattulat 1 년 전
부모
커밋
c264bf5b50
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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"