dellcloudedge/crowbar — pull request #1651 by rhafer (2012-12-10 12:53:41+00:00)
Title: dev tool ask for root password every time

Since a few days the dev tool is asking for the root password with every run. The root cause of this seems to be the:

trap 'sudo rm -rf "$CROWBAR_TMP"' 0 INT QUIT TERM

which was introduced with commit bdfc1c5. I wonder why that rm needs to be called with root privileges as I didn't find anything creating files below $CROWBAR_TMP that are not owned by the user calling "dev". I might have overlooked something though. But then it is still very much unexpected to be asked for the root password without any reason given by the tool.