Browse Source

sde: fixed to be more friendly to Ubuntu's /bin/sh

user/amery/test/random-cleanup
Alejandro Mery 13 years ago
parent
commit
1e65e5153b
2 changed files with 6 additions and 5 deletions
  1. +3
    -2
      bin/sde
  2. +3
    -3
      lib/sde-wrapper-command.in

+ 3
- 2
bin/sde

@ -3,7 +3,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: bin/sde
# Copyright (C) 2006 - 2008 The OpenSDE Project
# Copyright (C) 2006 - 2010 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
@ -29,8 +29,9 @@ echo_abort() {
# Early checking of the system
#
[ -n "$( type -p readlink )" ] ||
if ! type readlink > /dev/null 2>&1; then
echo_abort 1 '`readlink` tool not found'
fi
readlink -f /bin/sh 2>&1 > /dev/null
[ $? -eq 0 ] ||

+ 3
- 3
lib/sde-wrapper-command.in

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: lib/sde-wrapper-command.in
# Copyright (C) 2006 - 2008 The OpenSDE Project
# Copyright (C) 2006 - 2010 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
@ -28,9 +28,9 @@ sde_wrapper_command_help_list() {
for command in $( sde_wrapper_command_list ); do
name=$( sde_wrapper_name "$command" )
desc=$( sde_wrapper_desc "$command" )
aliases=$( sde_wrapper_aliases "$command" )
aliases=$( sde_wrapper_aliases "$command" | tr ' ' ',')
printf "%15s %s%s\n" "$name" "${desc:-...}" "${aliases:+ (Alias: ${aliases// /,})}"
printf "%15s %s%s\n" "$name" "${desc:-...}" "${aliases:+ (Alias: ${aliases})}"
done
}

Loading…
Cancel
Save