From 07bc66dcb4a4e496fd1eb53f0995033770b2ed2a Mon Sep 17 00:00:00 2001 From: ericagar Date: Wed, 17 Aug 2011 18:49:15 +0000 Subject: [PATCH] Fix for defect 3393267: Fix bashisms in tabedit git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10305 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/sbin/tabedit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-client/sbin/tabedit b/xCAT-client/sbin/tabedit index 421cc6a76..7cf3f3395 100755 --- a/xCAT-client/sbin/tabedit +++ b/xCAT-client/sbin/tabedit @@ -3,7 +3,7 @@ # Opens the specified table in the users editor;writes changes back to the db -function cexit { +cexit () { if [ -d /tmp/tabedit.$$ ]; then rm -rf /tmp/tabedit.$$; fi @@ -13,7 +13,7 @@ trap cexit 2 15 if [ -r /etc/profile.d/xcat.sh ]; then #Source for environment variables - source /etc/profile.d/xcat.sh + . /etc/profile.d/xcat.sh fi TABLE=$1 @@ -54,7 +54,7 @@ while [ $EXIT -eq 0 ]; do $TABEDITOR $TABLE.csv cd - >/dev/null NEWSUM=`$SUMPROGRAM /tmp/tabedit.$$/$TABLE.csv` - if [ "$NEWSUM" == "$SUM" ]; then + if [ "$NEWSUM" = "$SUM" ]; then echo "No file modifications detected, not restoring." break; fi