From: Don Armstrong <don@donarmstrong.com> Date: Sat, 24 May 2025 18:11:57 +0000 (-0700) Subject: add new_job command to push to new job X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b548dcf56e4c25127939c305ddd371f846c61ee8;p=resume.git add new_job command to push to new job --- diff --git a/new_job b/new_job new file mode 100755 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 +