Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
70338e84
Commit
70338e84
authored
Feb 12, 2018
by
Sietse Ringers
Browse files
Fix bug in path handling in schememgr update
parent
24ff0a65
Changes
1
Hide whitespace changes
Inline
Side-by-side
schememgr/cmd/update.go
View file @
70338e84
package
cmd
import
(
"os"
"path/filepath"
"strings"
"github.com/go-errors/errors"
"github.com/privacybydesign/irmago"
...
...
@@ -36,9 +34,7 @@ func updateSchemeManager(paths []string) error {
}
for
_
,
path
:=
range
paths
{
if
strings
.
HasSuffix
(
path
,
string
(
os
.
PathSeparator
))
{
path
=
path
[
:
len
(
path
)
-
1
]
}
path
,
err
:=
filepath
.
Abs
(
path
)
irmaconf
,
manager
:=
filepath
.
Dir
(
path
),
filepath
.
Base
(
path
)
// TODO: this parses all managers within the irma_configuration folder, not just the one specified
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment