Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added command line parameters to deploy.bash as inline comments #316

Merged
merged 5 commits into from
Feb 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions deploy.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
#!/bin/bash
{
#////////////////////////////////////
# deploy.bash
#
# Info:
# - Used to deploy changes of the DietPi website
# to view local changes before doing a PR on GitHub
# - Generates a DietPi website directory structure
# locally on the host running the script
#
# Usage:
# ./deploy.bash $1 $2 $3
# - $1 (optional) = deploy target directory (default: /tmp/DietPi-Website-<branch>, e.g. /tmp/DietPi-Website-master)
# - $2 (optional) = GitHub branch (default: master)
# - $3 (optional) = GitHub owner (default: MichaIng)
#
# Examples
# - ./deploy.bash /var/www
# - ./deploy.bash /var/www/public_html dev StephanStS
#
#////////////////////////////////////
#
# Inputs
# - Optional target directory
if [[ $1 == '/'* ]]
Expand Down