Skip to content

Commit

Permalink
Merge pull request #432 from mariux64/prun-add-profile-filename-usage
Browse files Browse the repository at this point in the history
prun: Allow profile filename as package name
  • Loading branch information
donald authored Jan 13, 2025
2 parents 77aadaf + 2d36140 commit 7a3bfc0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions prun/prun
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ if [ $# -lt 2 ]; then
echo "usage: prun package command ..." >&2
exit 1
fi
arg1=$1;shift
arg1=$1; shift
set -- $arg1 "$@"
pkg=$1;shift;
. /usr/local/package/lib/$pkg.profile
pkg=$1; shift;
if [[ "$pkg" == */* ]]; then
. $pkg
else
. /usr/local/package/lib/$pkg.profile
fi
exec "$@"

0 comments on commit 7a3bfc0

Please sign in to comment.