Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
97201eb0
Commit
97201eb0
authored
Mar 23, 2012
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-proxy: use ask instead of default_read and add debug stuff
add -p for setting ROOT so we can debug this easier.
parent
83614da4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
setup-proxy.in
setup-proxy.in
+8
-5
No files found.
setup-proxy.in
View file @
97201eb0
#!/bin/sh
PREFIX
=
.
"
$PREFIX
/lib/libalpine.sh"
for
i
in
./libalpine.sh
$PREFIX
/lib/libalpine.sh
;
do
[
-e
$i
]
&&
.
$i
&&
break
done
usage
()
{
cat
<<
__EOF__
...
...
@@ -21,10 +22,11 @@ __EOF__
while
getopts
"hq"
opt
;
do
while
getopts
"h
p:
q"
opt
;
do
case
"
$opt
"
in
q
)
quiet
=
1
;;
h
)
usage
;;
p
)
ROOT
=
$OPTARG
;;
esac
done
...
...
@@ -44,13 +46,14 @@ while true; do
http://
*
)
break
;;
none
)
proxyurl
=
;
break
;;
esac
echon
"HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [
$suggest
] "
default_read proxyurl
$suggest
ask
"HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none')"
$suggest
proxyurl
=
$resp
done
if
[
-z
"
$proxyurl
"
]
;
then
rm
-f
"
$PROFILE
"
else
mkdir
-p
"
${
PROFILE
%/*
}
"
cat
>
"
$PROFILE
"
<<
__EOF__
# this file was generated with and might get overwritten by setup-proxy
...
...
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