Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
wine
wine-winehq
Commits
c069474e
Commit
c069474e
authored
Dec 23, 2008
by
Dan Kegel
Committed by
Alexandre Julliard
Dec 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: Remove bashisms from wineinstall.
parent
45a081f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
wineinstall
tools/wineinstall
+4
-6
No files found.
tools/wineinstall
View file @
c069474e
...
...
@@ -41,7 +41,7 @@ conf_yesno_answer() {
echo
"Wine Installer v1.0"
echo
if
!
[
-f
configure
]
if
[
!
-f
configure
]
then
if
[
-f
../configure
]
then
{
...
...
@@ -55,7 +55,7 @@ then
fi
fi
if
[
`
whoami
`
=
'root'
]
if
[
-w
/
]
then
echo
"You are running wineinstall as root, this is not advisable. Please rerun as a user."
echo
"Aborting."
...
...
@@ -70,9 +70,7 @@ then
fi
# check whether RPM installed, and if it is, remove any old wine rpm.
hash
rpm &>/dev/null
RET
=
$?
if
[
$RET
-eq
0
]
;
then
if
[
-x
`
which rpm 2>/dev/null
`
]
;
then
if
[
-n
"
`
rpm
-qi
wine 2>/dev/null|grep
"^Name"
`
"
]
;
then
echo
"Warning: Old Wine RPM install detected. Do you want to remove it first?"
conf_yesno_answer
"(yes/no) "
...
...
@@ -98,7 +96,7 @@ if [ $RET -eq 0 ]; then
fi
# check whether wine binary still available
if
[
-n
"
`
wine
--version
2>/dev/null
`
"
]
if
[
-
x
`
which wine 2>/dev/null
`
]
&&
[
-
n
"
`
wine
--version
2>/dev/null
`
"
]
then
echo
"Warning !! wine binary (still) found, which may indicate"
echo
"a (conflicting) previous installation."
...
...
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