summaryrefslogtreecommitdiff
path: root/cmd/rmbook
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-12-15 12:38:36 +0000
committerNick White <git@njw.name>2020-12-15 12:38:36 +0000
commit7d9f77c2f1102aec026d1af78d1fe4725ed76674 (patch)
tree040bada127a36c6e845a85b90518af522547cb1b /cmd/rmbook
parentfb1069b504e8cd37b9a2bcdccefa9699d0e1dee9 (diff)
[rmbook] Append / to end of bookname, to ensure e.g. "1" doesnt match all books starting with "1"
Diffstat (limited to 'cmd/rmbook')
-rw-r--r--cmd/rmbook/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/rmbook/main.go b/cmd/rmbook/main.go
index c195d85..fcacc2e 100644
--- a/cmd/rmbook/main.go
+++ b/cmd/rmbook/main.go
@@ -57,7 +57,7 @@ func main() {
log.Fatalln("Error setting up cloud connection:", err)
}
- bookname := flag.Arg(0)
+ bookname := flag.Arg(0) + "/"
fmt.Println("Getting list of files for book")
objs, err := conn.ListObjects(conn.WIPStorageId(), bookname)