Ensure .local/bin exists
This commit is contained in:
@@ -14,6 +14,8 @@ fi
|
|||||||
package=$1
|
package=$1
|
||||||
command=${2:-$1}
|
command=${2:-$1}
|
||||||
|
|
||||||
|
mkdir -p "$HOME/.local/bin"
|
||||||
|
|
||||||
cat > "$HOME/.local/bin/$command" <<EOF
|
cat > "$HOME/.local/bin/$command" <<EOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
exec npx --yes $package "\$@"
|
exec npx --yes $package "\$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user