Skip to content

Commit

Permalink
Add option to ask for loading commands fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdiirh committed May 23, 2022
1 parent 14bdf56 commit f168271
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,17 @@ echo

echo - Loading fixtures...
./manage.py loaddata install/fixtures.json
./manage.py loaddata install/linux_commands.json

while true; do
read -rp "Load commands fixtures? ( pre-defined commands ) [y/n] : " fixtures;
if [ "$fixtures" == "y" ]; then
./manage.py loaddata install/linux_commands.json
break;
elif [ "$fixtures" == "n" ]; then
break;
fi;
done

echo Done
echo

Expand Down

0 comments on commit f168271

Please sign in to comment.