Skip to content
This repository was archived by the owner on Oct 28, 2019. It is now read-only.

Commit 91f4c63

Browse files
authored
Merge pull request #9 from oganexon/develop
v1.1.0
2 parents 231f6eb + 8f11e02 commit 91f4c63

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
## [Unreleased]
1616

17+
## [1.1.0] - 2019-08-19
18+
19+
### Fixed
20+
- Command line tool bugs with paths.
21+
1722
## [1.0.1] - 2019-08-16
1823

1924
Release of 1.0.0 (stable API)

bin/cli/check.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ const { methods } = require('../../lib/methods')
99
function check (argv, { method, retries, force, globbing }) {
1010
let paths = []
1111
if (globbing) {
12-
for (let i = 0, len = argv.length; i < len; i++) {
12+
for (let i = 0; i < argv.length; i++) {
13+
if (!path.isAbsolute(argv[i])) {
14+
argv[i] = path.join(process.cwd(), argv[i])
15+
}
1316
if (path.sep !== '/') {
1417
argv[i] = argv[i].split(path.sep).join('/')
15-
paths = paths.concat(argv[i])
16-
} else {
17-
paths = paths.concat(glob.sync(path.join(process.cwd(), argv[i])))
1818
}
19-
console.log(paths)
19+
paths = paths.concat(glob.sync(argv[i]))
2020
}
2121
} else paths = argv
2222
if (paths.length === 0) console.log(chalk.bold.yellow('No such file or directory.'))

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "secure-rm",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "Completely erases files by making recovery impossible.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)