diff options
author | Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> | 2021-06-20 12:14:18 +0200 |
---|---|---|
committer | Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> | 2021-06-20 12:14:18 +0200 |
commit | b6b95dcc9d6563666c1358e6800cc9ff064f657c (patch) | |
tree | be25dbaec76b8f18e9897334f5a6bceee131e7ae /src/fpm_filesystem.f90 | |
parent | e6688d07c5658b1a26354be7d7aea68231679f05 (diff) | |
download | fpm-b6b95dcc9d6563666c1358e6800cc9ff064f657c.tar.gz fpm-b6b95dcc9d6563666c1358e6800cc9ff064f657c.zip |
Allow reading version number from file
Diffstat (limited to 'src/fpm_filesystem.f90')
-rw-r--r-- | src/fpm_filesystem.f90 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fpm_filesystem.f90 b/src/fpm_filesystem.f90 index 486e989..e6226b4 100644 --- a/src/fpm_filesystem.f90 +++ b/src/fpm_filesystem.f90 @@ -184,6 +184,7 @@ function dirname(path) result (dir) character(:), allocatable :: dir dir = path(1:scan(path,'/\',back=.true.)) + if (len_trim(dir) == 0) dir = "." end function dirname |