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`

Status

Assignee

Rüdiger Rolf

Reporter

Rüdiger Rolf

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Critical
Configure