generated from me/template-mit
Continue enhancing the auto-update version of env-shared.
This commit is contained in:
12
rc_shared.sh
12
rc_shared.sh
@@ -121,7 +121,7 @@ function update-shared2 {
|
||||
remote_bin="$project/bin-shared"
|
||||
if [[ -d "$local_bin" ]]; then
|
||||
log "\n`date` - Found '$local_bin', adding scripts.\n"
|
||||
mv -v $remote_bin/*.sh "$local_bin"/
|
||||
cp -v $remote_bin/*.sh "$local_bin"/
|
||||
|
||||
refactor_script="refactor_music_library.sh"
|
||||
wget -O "$refactor_script" \
|
||||
@@ -133,9 +133,15 @@ function update-shared2 {
|
||||
echo "Did not find '$local_bin', did not copy scripts."
|
||||
fi
|
||||
}
|
||||
alias shared-update2="update-shared2"
|
||||
alias reload-shared2="update-shared2"
|
||||
alias shared-reload2="update-shared2"
|
||||
if [[ -d $project ]]; then
|
||||
git -C $project status | grep TBD &&
|
||||
echo "`date` - Updates to env-shared are available."
|
||||
git -C $project fetch && git -C $project status | grep "is behind" \
|
||||
| while read status; do
|
||||
log "\n\n`date` - Updates to env-shared are available via update-shared2."
|
||||
log ": '$status'\n"
|
||||
done
|
||||
fi &
|
||||
|
||||
# Shortcuts #
|
||||
|
||||
Reference in New Issue
Block a user