mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-30 19:54:47 +00:00
fix bug with unspecified package uploads
This commit is contained in:
@@ -305,7 +305,7 @@ upload (Upload name mpkg shouldIndex) = do
|
|||||||
Nothing -> do
|
Nothing -> do
|
||||||
cwd <- getCurrentDirectory
|
cwd <- getCurrentDirectory
|
||||||
files <- listDirectory cwd
|
files <- listDirectory cwd
|
||||||
let pkgs = filter (\n -> takeExtension n == "s9pk") files
|
let pkgs = filter (\n -> takeExtension n == ".s9pk") files
|
||||||
case pkgs of
|
case pkgs of
|
||||||
[] -> do
|
[] -> do
|
||||||
$logError "No package specified, and could not find one in this directory"
|
$logError "No package specified, and could not find one in this directory"
|
||||||
|
|||||||
Reference in New Issue
Block a user