3rdparty clean-up script does not work with ubuntu

Steps to reproduce

Steps to reproduce:
matterhorn@ubuntu:/opt/matterhorn/1.1.x/docs/scripts/3rd_party$ export HOME3P=`pwd`
matterhorn@ubuntu:/opt/matterhorn/1.1.x/docs/scripts/3rd_party$ sudo ./clean-up
------------------------------------------------------------------------
/opt/matterhorn/1.1.x/docs/scripts/3rd_party/clean-up
------------------------------------------------------------------------
+ source /utilx
./clean-up: line 6: /utilx: No such file or directory
+ '[' 1 -ne 0 ']'
+ exit 1
matterhorn@ubuntu:/opt/matterhorn/1.1.x/docs/scripts/3rd_party$ echo $HOME3P
/opt/matterhorn/1.1.x/docs/scripts/3rd_party
matterhorn@ubuntu:/opt/matterhorn/1.1.x/docs/scripts/3rd_party$ sudo echo $HOME3P
/opt/matterhorn/1.1.x/docs/scripts/3rd_party

Workaround:
Add this form do-all to the clean-up script:
[ -z "$HOME3P" ] && export HOME3P=`cd "${0%/*}" 2>/dev/null; echo $PWD`

Activity

Show:
Rüdiger Rolf
March 21, 2011, 9:23 AM

Hi Matjaz,

I fixed this in rev 10177.
Maybe you can check if this is needed in other 3rd-party scripts too.

Matjaz Rihtar
April 14, 2011, 1:17 PM

Added default value for HOME3P for all top-level scripts (if it's not set)
Fixed in r10295

Assignee

Rüdiger Rolf

Reporter

Rüdiger Rolf

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Critical
Configure