aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2025-01-26 08:52:40 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2025-01-26 08:52:40 +0100
commit60f13a8717082626fabefa82417b050d6339a177 (patch)
tree209acfb273cf46709b0cf62f54cc0078d9d1e38e
parenta85228858749d33f7d0d2356d85dac68bfdf4521 (diff)
upload-artifact: Set default directory on getdir
Otherwise, uploads without the `-d` flag are broken because the first file is considered the directory to upload to.
-rwxr-xr-xupload-artifact2
1 files changed, 2 insertions, 0 deletions
diff --git a/upload-artifact b/upload-artifact
index e74f176..d0a172e 100755
--- a/upload-artifact
+++ b/upload-artifact
@@ -32,6 +32,8 @@ login()
getdir()
{
+ dir="/"
+
while getopts "d:" arg
do
case $arg in