Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
profileview
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
Riccardo Vicedomini
profileview
Commits
b5096d70
Commit
b5096d70
authored
May 13, 2020
by
Riccardo Vicedomini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attempt to fix macOS problem with mktemp
parent
8113881f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
profileview-motif
profileview-motif
+7
-4
profileview-tree
profileview-tree
+7
-4
No files found.
profileview-motif
View file @
b5096d70
...
...
@@ -145,10 +145,13 @@ fi
# Create temp working directory
if
[
-z
"
${
PV_TMPDIR
}
"
]
;
then
PV_TMPDIR
=
$(
mktemp
-p
"
${
TMPDIR
:-
.
}
"
-d
pvtmp-XXXXX
)
||
{
print_error
"cannot create temporary directory"
exit
1
}
if
[
check_system
=
"Linux"
]
;
then
PV_TMPDIR
=
$(
mktemp
-p
"
${
PWD
}
"
-d
pvtmp-XXXXX
)
||
{
print_error
"cannot create temporary directory"
;
exit
1
;
}
else
PV_TMPDIR
=
$(
mktemp
-d
"
${
PWD
}
"
/pvtmp-XXXXX
)
||
{
print_error
"cannot create temporary directory"
;
exit
1
;
}
fi
else
mkdir
-p
"
${
PV_TMPDIR
}
"
||
{
print_error
"cannot create temporary directory"
;
exit
1
;
}
fi
PV_TMPDIR
=
$(
abspath
"
${
PV_TMPDIR
}
"
)
if
[
!
-d
"
${
PV_TMPDIR
}
"
]
||
[
-n
"
$(
ls
-A
"
${
PV_TMPDIR
}
"
)
"
]
;
then
...
...
profileview-tree
View file @
b5096d70
...
...
@@ -181,10 +181,13 @@ fi
# Create temp working directory
if
[
-z
"
${
PV_TMPDIR
}
"
]
;
then
PV_TMPDIR
=
$(
mktemp
-p
"
${
TMPDIR
:-
.
}
"
-d
pvtmp-XXXXX
)
||
{
print_error
"cannot create temporary directory"
exit
1
}
if
[
check_system
=
"Linux"
]
;
then
PV_TMPDIR
=
$(
mktemp
-p
"
${
PWD
}
"
-d
pvtmp-XXXXX
)
||
{
print_error
"cannot create temporary directory"
;
exit
1
;
}
else
PV_TMPDIR
=
$(
mktemp
-d
"
${
PWD
}
"
/pvtmp-XXXXX
)
||
{
print_error
"cannot create temporary directory"
;
exit
1
;
}
fi
else
mkdir
-p
"
${
PV_TMPDIR
}
"
||
{
print_error
"cannot create temporary directory"
;
exit
1
;
}
fi
PV_TMPDIR
=
$(
abspath
"
${
PV_TMPDIR
}
"
)
if
[
!
-d
"
${
PV_TMPDIR
}
"
]
||
[
-n
"
$(
ls
-A
"
${
PV_TMPDIR
}
"
)
"
]
;
then
...
...
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