Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
argupta
openfpm_pdata
Commits
25c0c433
Commit
25c0c433
authored
9 years ago
by
incardon
Browse files
Options
Downloads
Patches
Plain Diff
fixing install script
parent
ea8a8ae0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
script/discover_os
+35
-0
35 additions, 0 deletions
script/discover_os
with
35 additions
and
0 deletions
script/discover_os
0 → 100755
+
35
−
0
View file @
25c0c433
#! /bin/bash
function
discover_os
()
{
platform
=
unknown
if
[[
"
$OSTYPE
"
==
"linux-gnu"
]]
;
then
echo
-e
"We are on
\0
33[1;34m LINUX
\0
33[0m"
platform
=
linux
elif
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
echo
-e
"We are on
\0
33[1;34m MAC OSX
\0
33[0m"
platform
=
osx
elif
[[
"
$OSTYPE
"
==
"cygwin"
]]
;
then
echo
-e
"We are on
\0
33[1;34m CYGWIN
\0
33[0m"
echo
"This platform is not supported"
exit
1
elif
[[
"
$OSTYPE
"
==
"msys"
]]
;
then
echo
-e
"We are on
\0
33[1;34m Microsoft Window
\0
33[0m"
echo
"This platform is not supported"
exit
1
elif
[[
"
$OSTYPE
"
==
"win32"
]]
;
then
echo
-e
"We are on
\0
33[1;34m Microsoft Window
\0
33[0m"
echo
"This platform is not supported"
exit
1
elif
[[
"
$OSTYPE
"
==
"freebsd"
*
]]
;
then
echo
-e
"We are on
\0
33[1;34m FREEBSD
\0
33[0m"
echo
"This platform is not supported"
exit
1
else
echo
-e
"We are on an
\0
33[1;34m unknown OS
\0
33[0m"
echo
"This platform is not supported"
exit
1
fi
}
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