]> git.donarmstrong.com Git - resume.git/commitdiff
add new_job command to push to new job
authorDon Armstrong <don@donarmstrong.com>
Sat, 24 May 2025 18:11:57 +0000 (11:11 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 24 May 2025 18:11:57 +0000 (11:11 -0700)
new_job [new file with mode: 0755]

diff --git a/new_job b/new_job
new file mode 100755 (executable)
index 0000000..74a5fdc
--- /dev/null
+++ b/new_job
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+URL="$1"
+NAME="$2"
+
+git branch "$NAME"
+git config set branch."$NAME".pushremote=private
+git config set branch."$NAME".remote=private
+git checkout "$NAME"
+
+echo "{\"url\":\"$URL\",\"name\":\"$NAME\"}" > job_details.json
+
+links -dump "$1" > job_description.txt
+
+git add job_details.json
+git add job_description.txt
+