Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikhail Tergoev
PortWINE
Commits
9fb5fb25
Commit
9fb5fb25
authored
Oct 24, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace == on -z
parent
8ca1ae91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
functions_helper
data_from_portwine/scripts/functions_helper
+9
-9
No files found.
data_from_portwine/scripts/functions_helper
View file @
9fb5fb25
...
...
@@ -267,7 +267,7 @@ EOF
while
[[
!
$line
=
~ msgid
]]
;
do
msgstr+
=
$line
read
-r
line
if
[[
$line
==
""
]]
;
then
if
[[
-z
$line
]]
;
then
break
fi
done
...
...
@@ -756,8 +756,8 @@ background_pid () {
export bg_pid"
${
arg3
}
"="
$PID
" ;;
--end)
PID=
$(
get_bg_pid bg_pid
"
${
arg3
}
"
)
[[
$PID
== ""
]] && return 1
wait "
$PID
" && return 0 ;;
[[
-z
$PID
]] && return 1
wait "
$PID
"
2>/dev/null
&& return 0 ;;
esac
fi
}
...
...
@@ -927,12 +927,12 @@ create_pw_comment () {
PW_SHORTCUT_PROXY="
$DESKTOP_NAME_FILE
"
elif [[
${
PORTPROTON_NAME
^^
}
=~
${
PORTWINE_DB
^^
}
&&
${
PORTPROTON_NAME
}
!= "
${
PORTWINE_DB
}
" ]]
\
|| [[
${#
PORTPROTON_NAME_ABBR
}
-gt 2 &&
${
PORTPROTON_NAME_ABBR
^^
}
=~
${
PORTWINE_DB
^^
}
]] ; then
PW_COMMENT_DB="
${
translations
[Launching]
}
<b>
$(
print_wrapped
"
$PORTPROTON_NAME
"
"50"
)
</b>
$(
seconds_to_time
"
$TIME_CURRENT
"
)
"
PW_SHORTCUT_PROXY="
$PORTPROTON_NAME
"
PW_COMMENT_DB="
${
translations
[Launching]
}
<b>
$(
print_wrapped
"
$PORTPROTON_NAME
"
"50"
)
</b>
$(
seconds_to_time
"
$TIME_CURRENT
"
)
"
PW_SHORTCUT_PROXY="
$PORTPROTON_NAME
"
elif [[
${
FILE_DESCRIPTION
^^
}
=~
${
PORTWINE_DB
^^
}
&&
${
FILE_DESCRIPTION
}
!= "
${
PORTWINE_DB
}
" ]]
\
|| [[
${#
FILE_DESCRIPTION_ABBR
}
-gt 2 &&
${
FILE_DESCRIPTION_ABBR
^^
}
=~
${
PORTWINE_DB
^^
}
]] ; then
PW_COMMENT_DB="
${
translations
[Launching]
}
<b>
$(
print_wrapped
"
$FILE_DESCRIPTION
"
"50"
)
</b>
$(
seconds_to_time
"
$TIME_CURRENT
"
)
"
PW_SHORTCUT_PROXY="
$FILE_DESCRIPTION
"
PW_COMMENT_DB="
${
translations
[Launching]
}
<b>
$(
print_wrapped
"
$FILE_DESCRIPTION
"
"50"
)
</b>
$(
seconds_to_time
"
$TIME_CURRENT
"
)
"
PW_SHORTCUT_PROXY="
$FILE_DESCRIPTION
"
else
unset PORTWINE_DB_PROXY PORTWINE_DB_NEW
PORTWINE_DB="
${
PORTWINE_DB
//_/
}
"
...
...
@@ -1016,10 +1016,10 @@ seconds_to_time () {
if [[
$minutes
=~ ^0
$
]] ; then
hours=
${
hours
//
"
${
translations
[and]
}
"
/
}
minutes=
if [[
$days
== "" ]] || [[
$hours
== ""
]] ; then
if [[
-z
$days
]] || [[ -z
$hours
]] ; then
days=
${
days
//
","
/
}
fi
if [[
$days
== "" ]] && [[
$hours
== ""
]] ; then
if [[
-z
$days
]] && [[ -z
$hours
]] ; then
minutes="
${
translations
[less than a minute]
}
"
fi
elif [[
$minutes
=~ ^1
$
]] ; 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