mirror of
https://github.com/studiokaiji/nostr-webhost.git
synced 2026-02-08 08:34:32 +01:00
replaceableオプションが指定されていない場合はidentifierが指定されていなくても入力を求めないようにした
This commit is contained in:
@@ -170,7 +170,7 @@ func Deploy(basePath string, replaceable bool, htmlIdentifier string) (string, e
|
||||
}
|
||||
|
||||
// htmlIdentifierの存在チェック
|
||||
if len(htmlIdentifier) < 1 {
|
||||
if replaceable && len(htmlIdentifier) < 1 {
|
||||
// htmlIdentifierが指定されていない場合はユーザー入力を受け取る
|
||||
reader := bufio.NewReader(os.Stdin)
|
||||
fmt.Print("⌨️ Please type identifier: ")
|
||||
|
||||
Reference in New Issue
Block a user