Skip to content

Commit 12a2b6c

Browse files
Alan Shawhugomrdias
Alan Shaw
authored andcommitted
fix: set profiles option if profiles array not empty (#433)
1 parent 7dad936 commit 12a2b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ipfsd-daemon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class Daemon {
116116
if (opts.emptyRepo) {
117117
args.push('--empty-repo')
118118
}
119-
if (opts.profiles && Array.isArray(opts.profiles)) {
119+
if (Array.isArray(opts.profiles) && opts.profiles.length) {
120120
args.push('--profile', opts.profiles.join(','))
121121
}
122122

0 commit comments

Comments
 (0)