Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
np
nptool
Commits
b73d486a
Commit
b73d486a
authored
9 years ago
by
adrien-matta
Browse files
Options
Downloads
Patches
Plain Diff
* Fixing color issue with nptool-cleaner on linux
- the red was kept after the run`
parent
1a6586f6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
NPLib/Utility/nptool-cleaner.cxx
+6
-4
6 additions, 4 deletions
NPLib/Utility/nptool-cleaner.cxx
with
6 additions
and
4 deletions
NPLib/Utility/nptool-cleaner.cxx
+
6
−
4
View file @
b73d486a
...
...
@@ -17,7 +17,7 @@ int main(int argc , char** argv){
current
=
"NPSimulation"
;
else
{
std
::
cout
<<
"
\r
\033
[1;31m ERROR: nptool-cleaner utility online clean NPLib and NPSimulation"
<<
endl
;
std
::
cout
<<
"
\r
\033
[1;31m ERROR: nptool-cleaner utility online clean NPLib and NPSimulation
\033
[0m
"
<<
endl
;
exit
(
1
);
}
...
...
@@ -36,9 +36,10 @@ int main(int argc , char** argv){
while
(
check
){
std
::
cout
<<
"**** Do you want to proceed ? (y/n) "
;
std
::
cin
>>
answer
;
if
(
answer
==
"n"
||
answer
==
"N"
)
if
(
answer
==
"n"
||
answer
==
"N"
){
std
::
cout
<<
"
\033
[0m"
;
return
0
;
}
else
if
(
answer
==
"y"
||
answer
==
"Y"
){
std
::
cout
<<
"Proceed"
<<
std
::
endl
;
check
=
false
;
...
...
@@ -47,7 +48,8 @@ int main(int argc , char** argv){
std
::
cout
<<
"Reply by y (yes) or n (no)"
<<
std
::
endl
;
}
}
std
::
cout
<<
"
\033
[0m"
;
std
::
string
command
,
command2
;
// Dict
command
=
"ls ./*/*Dict* > /dev/null 2>/dev/null"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment