feat: publish script and cleanup
This commit is contained in:
11
scripts/publish.sh
Normal file → Executable file
11
scripts/publish.sh
Normal file → Executable file
@@ -1,8 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
|
||||
#
|
||||
# Script that publishes the set up script for new installations.
|
||||
#
|
||||
BUCKET=${BUCKET:-"dots.andrejus.dev"}
|
||||
|
||||
echo "Publishing..."
|
||||
NAME=$(basename "$0")
|
||||
REL_DIR=$(dirname "$0")
|
||||
ABS_DIR=$(readlink -f $REL_DIR/../) # Scripts are nested inside of /scripts
|
||||
|
||||
# Publish setup script to public bucket
|
||||
gsutil cp "$ABS_DIR/scripts/setup.sh" "gs://$BUCKET/setup.sh"
|
||||
|
||||
Reference in New Issue
Block a user