Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
59d655c5
Commit
59d655c5
authored
Oct 08, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Double echo temp directory name to handle spaces and ~ expansion both
Fixes #12667
parent
d1b98ec7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/plugins/shell/sh.py
+2
-2
No files found.
lib/ansible/plugins/shell/sh.py
View file @
59d655c5
...
...
@@ -67,8 +67,8 @@ class ShellModule(object):
basetmp
=
self
.
join_path
(
C
.
DEFAULT_REMOTE_TMP
,
basefile
)
if
system
and
(
basetmp
.
startswith
(
'$HOME'
)
or
basetmp
.
startswith
(
'~/'
)):
basetmp
=
self
.
join_path
(
'/tmp'
,
basefile
)
cmd
=
'mkdir -p "
%
s
"'
%
basetmp
cmd
+=
' && echo "
%
s
"'
%
basetmp
cmd
=
'mkdir -p "
$(echo
%
s)
"'
%
basetmp
cmd
+=
' && echo "
$(echo
%
s)
"'
%
basetmp
# change the umask in a subshell to achieve the desired mode
# also for directories created with `mkdir -p`
...
...
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