aboutsummaryrefslogtreecommitdiff
path: root/player
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2021-06-07 09:56:15 -0400
committerJeffrey Armstrong <jeff@approximatrix.com>2021-06-07 09:56:15 -0400
commitcd9283417a4b70335edf7ce0c5d15bfca111b807 (patch)
tree549c0aefc35fc8c8f4d84ebb9a9b43873e551f5d /player
parent5231a55c3ff75840890ab6b509ce3064b3399046 (diff)
downloadlevitating-cd9283417a4b70335edf7ce0c5d15bfca111b807.tar.gz
levitating-cd9283417a4b70335edf7ce0c5d15bfca111b807.zip
Git and shell tasks now default to the current directory if unspecified.
Diffstat (limited to 'player')
-rw-r--r--player/instructions.f9012
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