Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
libre
keyringer-macosx
Commits
2e987d14
Commit
2e987d14
authored
Sep 02, 2014
by
Silvio Rhatto
Browse files
Ensure destination folder exists at 'cp' action
parent
be12c6d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
ChangeLog
ChangeLog
+4
-0
lib/keyringer/actions/cp
lib/keyringer/actions/cp
+4
-1
No files found.
ChangeLog
View file @
2e987d14
2014-09-02 - Silvio Rhatto <rhatto@riseup.net>
Ensure destination folder exists at 'cp' action
2014-08-21 - 0.3.7 - Silvio Rhatto <rhatto@riseup.net>
Init: just set git user/mail if needed
...
...
lib/keyringer/actions/cp
View file @
2e987d14
...
...
@@ -27,7 +27,10 @@ if ! echo "$ORIG" | grep -q '*' && [ ! -e "$KEYDIR/$RELATIVE_PATH/$ORIG" ]; then
exit
1
fi
# Run move command
# Ensure destination folder exists
mkdir
-p
`
dirname
"
$KEYDIR
/
$FILE
"
`
# Run copy command
cd
"
$KEYDIR
"
&&
cp
-a
"./
$RELATIVE_PATH
/
$ORIG
"
"./
$FILE
"
keyringer_exec git
"
$BASEDIR
"
add
"keys/
$FILE
"
cd
"
$CWD
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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