✨ Added licensing for init script
This commit is contained in:
parent
29605e9683
commit
832e501ca7
1 changed files with 22 additions and 0 deletions
|
|
@ -48,6 +48,28 @@ function b_init() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# prompt user if they'd like to generate a license
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
read -e -r -p "${txtblue} would you like to generate a LICENSE?(y/n/help): ${txtyellow}" confirmlegit
|
||||||
|
if [[ $confirmlegit == "y" || $confirmlegit == "yes" ]] ; then
|
||||||
|
dependencycheck legit
|
||||||
|
read -e -r -p "${txtblue} enter license type: ${txtyellow}" license
|
||||||
|
legit p "${license}"
|
||||||
|
break
|
||||||
|
elif [[ $confirmlegit == "h" || $confirmlegit == "help" ]] ; then
|
||||||
|
dependencycheck legit
|
||||||
|
if command -v "bat" &> /dev/null ; then
|
||||||
|
legit l | bat
|
||||||
|
else
|
||||||
|
dependencycheck less
|
||||||
|
legit l | less
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
read -e -r -p "${txtblue} would you like to make this an npm project?(y/n): ${txtyellow}" confirmnpm
|
read -e -r -p "${txtblue} would you like to make this an npm project?(y/n): ${txtyellow}" confirmnpm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue