14 lines
254 B
Bash
Executable File
14 lines
254 B
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
command_name_bun="bun"
|
|
if ! command -v "$command_name_bun" &> /dev/null; then
|
|
echo "Command '$command_name_bun' not found. Installing..."
|
|
npm install -g "$command_name_bun"@latest
|
|
else
|
|
"$command_name_bun" lint || exit 1 && cd ..
|
|
fi
|
|
|