Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
taste-setup
Commits
eb20cb17
Commit
eb20cb17
authored
Oct 23, 2017
by
Maxime Perrotin
Browse files
Move the command to end the progress bar
Wrong error code was tested...
parent
8c825958
Changes
1
Hide whitespace changes
Inline
Side-by-side
misc/helper-scripts/taste-update-data-view
View file @
eb20cb17
...
...
@@ -8,6 +8,7 @@ mkfifo $myfifo
tail
-f
$myfifo
| taste-progress-dialog.py &
function
quit
{
echo
'100 Completed'
>
$myfifo
rm
$myfifo
tailps
=
$(
pstree
-p
$$
|
grep tail
| python
-c
"import sys, re; print re.search(r'tail
\(
(.*)
\)
', [x for x in sys.stdin][0]).group(1)"
)
kill
$tailps
||
xterm
-e
"echo Internal Error, unable to kill subprocess. Open a terminal and type 'pkill tail' to (hopefully) recover"
...
...
@@ -93,7 +94,6 @@ DATAVIEW+=" $(taste-config --prefix)/share/taste-types/taste-types.asn"
#asn2aadlPlus $DATAVIEW "$AADL" -aadlv2 2>&1 | uniq >&2
echo
'0-100 Updating data view'
>
$myfifo
asn2aadlPlus
$DATAVIEW
"
$AADL
"
-aadlv2
2>&1
>
>(
uniq
>
&2
)
echo
'100 Completed'
>
$myfifo
if
[
"
$?
"
=
"1"
]
then
...
...
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