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
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
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
ee9312c5
Commit
ee9312c5
authored
Mar 01, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-apkrepos: minor cleanup. use $(( ... )) instead of `expr ...`
saves a fork
parent
d949ebc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
setup-apkrepos.in
setup-apkrepos.in
+3
-3
No files found.
setup-apkrepos.in
View file @
ee9312c5
...
...
@@ -48,7 +48,7 @@ prompt_setup_method() {
get_random_mirror
()
{
local
i
=
0
local
mirror_count
=
$(
count
$MIRRORS
)
local
random_mirror_index
=
`
expr
$RANDOM
%
$mirror_count
`
local
random_mirror_index
=
$((
$RANDOM
%
$mirror_count
))
local
random_mirror_hostname
echo
-n
"Picking random mirror... "
...
...
@@ -56,7 +56,7 @@ get_random_mirror() {
if
[
$i
-eq
$random_mirror_index
]
;
then
break
fi
i
=
`
expr
$i
+ 1
`
i
=
$((
$i
+
1
))
done
echo
"using
$(
get_hostname_from_url
$mirror
)
"
...
...
@@ -201,7 +201,7 @@ prompt_alpine_release() {
i
=
1
for
_release
in
$RELEASES
;
do
echo
"
$i
)
$_release
"
i
=
`
expr
$i
+ 1
`
i
=
$((
$i
+
1
))
done
echo
-n
"Please select a release from the above list: "
...
...
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