diff options
author | Jeffrey Armstrong <jeff@approximatrix.com> | 2021-06-07 09:56:15 -0400 |
---|---|---|
committer | Jeffrey Armstrong <jeff@approximatrix.com> | 2021-06-07 09:56:15 -0400 |
commit | cd9283417a4b70335edf7ce0c5d15bfca111b807 (patch) | |
tree | 549c0aefc35fc8c8f4d84ebb9a9b43873e551f5d | |
parent | 5231a55c3ff75840890ab6b509ce3064b3399046 (diff) | |
download | levitating-cd9283417a4b70335edf7ce0c5d15bfca111b807.tar.gz levitating-cd9283417a4b70335edf7ce0c5d15bfca111b807.zip |
Git and shell tasks now default to the current directory if unspecified.
-rw-r--r-- | player/instructions.f90 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/player/instructions.f90 b/player/instructions.f90 index 3b2f0de..4669f18 100644 --- a/player/instructions.f90 +++ b/player/instructions.f90 @@ -331,6 +331,12 @@ contains end if found(3) = get_task_string(j, i, "directory", filename) + ! If no directory is specified, do it in the current directory + if(.not. found(3)) then + filename = '.' + found(3) = .true. + end if + found(4) = get_task_logical(j, i, "destructive", destructive) if(.not. found(4)) then @@ -351,6 +357,12 @@ contains found(1) = get_task_string(j, i, "command", cmd) found(2) = get_task_string(j, i, "directory", filename) + ! If no directory is specified, do it in the current directory + if(.not. found(2)) then + filename = '.' + found(2) = .true. + end if + if(.not. all(found,1)) then success = .false. else |