Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:Compiler-Tools-leap
gdb
gdb-add-index.sh-fix-bashism.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gdb-add-index.sh-fix-bashism.patch of Package gdb
[gdb-add-index.sh] Fix bashism --- gdb/contrib/gdb-add-index.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/contrib/gdb-add-index.sh b/gdb/contrib/gdb-add-index.sh index 734110caa3b..00d3ae8b0ae 100755 --- a/gdb/contrib/gdb-add-index.sh +++ b/gdb/contrib/gdb-add-index.sh @@ -38,7 +38,9 @@ fi file="$1" if test -L "$file"; then - if ! command -v readlink >/dev/null 2>&1; then + target=$(readlink "$file") + st=$? + if [ $st -eq 127 ]; then echo "$myname: 'readlink' missing. Failed to follow symlink $1." 1>&2 exit 1 fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor