Skip to content

Commit cfdd360

Browse files
committed
fixup! tests/nanocoap_cli: enable nget command
1 parent 5b8ea0d commit cfdd360

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sys/shell/commands/sc_nanocoap_vfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int _nanocoap_get_handler(int argc, char **argv)
9999
return -EINVAL;
100100
}
101101

102-
if (_is_dir(url)) {
102+
if (_is_dir(url) && argc < 3) {
103103
res = _print_dir(url, buffer, sizeof(buffer));
104104
if (res) {
105105
printf("Request failed: %s\n", strerror(-res));

0 commit comments

Comments
 (0)