ソースを参照

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"