Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
korinf
etersoft-build-utils
Commits
5e425f07
Commit
5e425f07
authored
Aug 26, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix OPTIND error with shift: -1: shift count
parent
45c3df70
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
11 additions
and
15 deletions
+11
-15
loginhsh
bin/loginhsh
+1
-1
myhsh
bin/myhsh
+1
-1
rpmbb
bin/rpmbb
+1
-1
rpmbph
bin/rpmbph
+1
-1
rpmbps
bin/rpmbps
+1
-1
rpmbs
bin/rpmbs
+1
-1
rpmbsh
bin/rpmbsh
+1
-1
rpmgp
bin/rpmgp
+1
-5
rpmgs
bin/rpmgs
+1
-1
rpmunmets
bin/rpmunmets
+1
-1
rpmurl
bin/rpmurl
+1
-1
No files found.
bin/loginhsh
View file @
5e425f07
...
...
@@ -69,7 +69,7 @@ done
# remove args that were options
if
[
$#
-gt
0
]
;
then
shift
$((
OPTIND
-
1
))
[
"
$OPTIND
"
-gt
0
]
&&
shift
$((
$
OPTIND
-
1
))
fi
LISTNAMES
=
"
$@
"
...
...
bin/myhsh
View file @
5e425f07
...
...
@@ -45,7 +45,7 @@ done
# remove args that were options
if
[
$#
-gt
0
]
;
then
shift
$((
OPTIND
-
1
))
[
"
$OPTIND
"
-gt
0
]
&&
shift
$((
$
OPTIND
-
1
))
fi
LISTRPMARGS
=
$@
...
...
bin/rpmbb
View file @
5e425f07
...
...
@@ -65,7 +65,7 @@ done
# FIXME: параметры передаются и дальше (например, -i, -b)
# remove args that were options
if
[
$#
-gt
0
]
;
then
shift
$((
OPTIND
-
1
))
[
"
$OPTIND
"
-gt
0
]
&&
shift
$((
$
OPTIND
-
1
))
fi
# pass other options to RPM:
...
...
bin/rpmbph
View file @
5e425f07
...
...
@@ -61,7 +61,7 @@ done
# remove args that were options
if
[
$#
-gt
0
]
;
then
shift
$((
OPTIND
-
1
))
[
"
$OPTIND
"
-gt
0
]
&&
shift
$((
$
OPTIND
-
1
))
fi
# pass other options
...
...
bin/rpmbps
View file @
5e425f07
...
...
@@ -48,7 +48,7 @@ done
# remove args that were options
if
[
$#
-gt
0
]
;
then
shift
$((
OPTIND
-
1
))
[
"
$OPTIND
"
-gt
0
]
&&
shift
$((
$
OPTIND
-
1
))
fi
# pass other options to RPM (exclude -v):
...
...
bin/rpmbs
View file @
5e425f07
...
...
@@ -93,7 +93,7 @@ done
## remove args that were options
if
[
$#
-gt
0
]
;
then
shift
$((
OPTIND
-
1
))
[
"
$OPTIND
"
-gt
0
]
&&
shift
$((
$
OPTIND
-
1
))
fi
LISTRPMARGS
=
$@
...
...
bin/rpmbsh
View file @
5e425f07
...
...
@@ -56,7 +56,7 @@ done
## remove args that were options
if
[
$#
-gt
0
]
;
then
shift
$((
OPTIND
-
1
))
[
"
$OPTIND
"
-gt
0
]
&&
shift
$((
$
OPTIND
-
1
))
fi
LISTRPMARGS
=
$@
...
...
bin/rpmgp
View file @
5e425f07
...
...
@@ -239,11 +239,7 @@ done
# FIXME: параметры передаются и дальше (например, -i, -b)
# remove args that were options
#if [ $# -gt 0 ]; then
# shift $((OPTIND - 1))
#fi
# remove args that were options
shift
$((
OPTIND
-
1
))
[
"
$OPTIND
"
-gt
0
]
&&
shift
$((
$OPTIND
-
1
))
# pass other options to RPM:
...
...
bin/rpmgs
View file @
5e425f07
...
...
@@ -48,7 +48,7 @@ while getopts :haf opt; do
done
# remove args that were options
shift
$((
OPTIND
-
1
))
[
"
$OPTIND
"
-gt
0
]
&&
shift
$((
$
OPTIND
-
1
))
LISTRPMARGS
=
$@
...
...
bin/rpmunmets
View file @
5e425f07
...
...
@@ -57,7 +57,7 @@ done
# remove args that were options
if
[
$#
-gt
0
]
;
then
shift
$((
OPTIND
-
1
))
[
"
$OPTIND
"
-gt
0
]
&&
shift
$((
$
OPTIND
-
1
))
fi
# pass other options to RPM:
...
...
bin/rpmurl
View file @
5e425f07
...
...
@@ -52,7 +52,7 @@ done
# remove args that were options
if
[
$#
-gt
0
]
;
then
shift
$((
OPTIND
-
1
))
[
"
$OPTIND
"
-gt
0
]
&&
shift
$((
$
OPTIND
-
1
))
fi
# pass other options to RPM:
...
...
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