We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47a5c6c commit 6b37ba7Copy full SHA for 6b37ba7
src/nimble.nim
@@ -963,6 +963,7 @@ proc init(options: Options) =
963
raise nimbleError("Please install git or mercurial first")
964
965
# Determine the package name.
966
+ let hasprojectname = options.action.projName != ""
967
let pkgName =
968
if options.action.projName != "":
969
options.action.projName
@@ -974,7 +975,7 @@ proc init(options: Options) =
974
975
976
# Determine the package root.
977
let pkgRoot =
- if pkgName == os.getCurrentDir().splitPath.tail:
978
+ if not hasprojectname:
979
os.getCurrentDir()
980
else:
981
os.getCurrentDir() / pkgName
0 commit comments