All pastes #581490 Raw Edit

$ cat bin/breakout

public shellscript v1 · immutable
·published 2007-06-21 15:25 UTC
rendered paste body
#!/bin/bash# break out of the GARNOME env by unsetting LD_LIBRARY_PATH# to support starting apps relying on the system glibunset LD_LIBRARY_PATH# clean the PATH, we do not want to start any app depending on the new glibPATH=${PATH/${GNOME_PREFIX}\/bin:/}# call the given executable with all parameters# if none given, invoke a bashif [ "$1" ]; then    $@else    /bin/bashfiexit