|
|
@ -2,7 +2,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: lib/sde-wrapper.in |
|
|
|
# Copyright (C) 2006 - 2007 The OpenSDE Project |
|
|
|
# Copyright (C) 2006 - 2008 The OpenSDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
# |
|
|
@ -14,7 +14,7 @@ |
|
|
|
|
|
|
|
# list all the valid command wrappers |
|
|
|
# |
|
|
|
sde_list_command_files() { |
|
|
|
sde_wrapper_command_list() { |
|
|
|
ls -1d "$SDEROOT/bin/sde-"* | grep -v 'bin/sde-.*-.*' |
|
|
|
} |
|
|
|
|
|
|
@ -28,7 +28,7 @@ sde_wrapper_command() { |
|
|
|
echo "$1" |
|
|
|
else |
|
|
|
# given token may be an alias of a valid command |
|
|
|
cmdbin=$( grep -l "^#Alias: $1$" `sde_list_command_files` | head -n 1 ) |
|
|
|
cmdbin=$( grep -l "^#Alias: $1$" `sde_wrapper_command_list` | head -n 1 ) |
|
|
|
echo "$cmdbin" | sed -e 's,.*/sde-,,' |
|
|
|
fi |
|
|
|
} |