From bc20ff5050dbbfe04d114105e28dead14def05c2 Mon Sep 17 00:00:00 2001 From: TimeTravelPenguin <35803538+TimeTravelPenguin@users.noreply.github.com> Date: Tue, 16 Jan 2024 00:35:28 +1100 Subject: [PATCH] Added bundle script --- .gitignore | 5 ++--- bundles/new_bundle.sh | 9 +++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100755 bundles/new_bundle.sh diff --git a/.gitignore b/.gitignore index fe1b454..72c422a 100644 --- a/.gitignore +++ b/.gitignore @@ -229,8 +229,7 @@ pyrightconfig.json # Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option) -test audio .vscode -files .idea -bundles +bundles/* +!bundles/new_bundle.sh diff --git a/bundles/new_bundle.sh b/bundles/new_bundle.sh new file mode 100755 index 0000000..2e518cc --- /dev/null +++ b/bundles/new_bundle.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) + +time=$(date +%Y-%m-%d_%H-%M-%S) +fname=$SCRIPT_DIR/$time.bundle + +echo Creating bundle: $fname +git bundle create $fname --all