rm: Fix wasn't proper in previous commit fix it

This commit is contained in:
Harshavardhana
2015-11-17 17:39:36 -08:00
parent b481b4f1c3
commit 1a6c7ffd95
+2 -2
View File
@@ -220,8 +220,8 @@ func mainRm(ctx *cli.Context) {
}
// Remove contents of this folder.
rmAll(url, isIncomplete)
// url will be '.' for arguments which will be just '...'
if removeTopFolder && url != "." && url != ".." {
// Ignore url's './', '../' .
if removeTopFolder && url != "./" && url != "../" {
// Remove top folder as well.
err := rm(url, isIncomplete)
if err != nil {