Skip to content

Commit

Permalink
Added command line parameters to deploy.bash as inline comments (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanStS authored Feb 10, 2024
1 parent 3a5e7ea commit 080a592
Showing 1 changed file with 21 additions and 0 deletions.
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

0 comments on commit 080a592

Please sign in to comment.