Skip to content

Commit

Permalink
Update brew-export
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkmmr69420 authored Apr 12, 2024
1 parent af80f8d commit 030e126
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bin/brew-export
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,18 @@ shift $((OPTIND -1))

bin=$1

if [ "$#" -eq 0 ]; then
echo "No arguments provided."
exit 1
fi

if test ! -f $binpath/$bin; then
echo "$bin not found"
exit 1
fi

if [ "$root" = "true" ]; then
distrobox-export --bin $binpath/$bin --export-path $HOME/.local/share/clinuxbrew/exports/bin
distrobox-export --bin $binpath/$bin --export-path $HOME/.local/share/clinuxbrew/exports/bin --sudo
else
distrobox-export --bin $binpath/$bin --export-path $HOME/.local/share/clinuxbrew/exports/bin
fi

0 comments on commit 030e126

Please sign in to comment.