generated from me/template-mit
Fix output for both update shared functions.
This commit is contained in:
@@ -98,7 +98,7 @@ function update-shared {
|
|||||||
log "\n`date` - Done! Removing git clone.\n"
|
log "\n`date` - Done! Removing git clone.\n"
|
||||||
mv -v $dir ~/TRASH/"$dir-`date "+%Y%m%d-%H%M%S"`"
|
mv -v $dir ~/TRASH/"$dir-`date "+%Y%m%d-%H%M%S"`"
|
||||||
|
|
||||||
log "\n`date` - Complete! Please note this does NOT update bin files."
|
log "\n`date` - Complete!"
|
||||||
}
|
}
|
||||||
alias shared-update="update-shared"
|
alias shared-update="update-shared"
|
||||||
alias reload-shared="update-shared"
|
alias reload-shared="update-shared"
|
||||||
@@ -132,6 +132,8 @@ function update-shared2 {
|
|||||||
else
|
else
|
||||||
echo "Did not find '$local_bin', did not copy scripts."
|
echo "Did not find '$local_bin', did not copy scripts."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
log "\n`date` - Complete!"
|
||||||
}
|
}
|
||||||
alias shared-update2="update-shared2"
|
alias shared-update2="update-shared2"
|
||||||
alias reload-shared2="update-shared2"
|
alias reload-shared2="update-shared2"
|
||||||
@@ -139,7 +141,7 @@ alias shared-reload2="update-shared2"
|
|||||||
( if [[ -d $project ]]; then
|
( if [[ -d $project ]]; then
|
||||||
git -C $project fetch >/dev/null 2>&1 && git -C $project status | grep "is behind" \
|
git -C $project fetch >/dev/null 2>&1 && git -C $project status | grep "is behind" \
|
||||||
| while read status; do
|
| while read status; do
|
||||||
log "\n\n`date` - Updates to env-shared are available via update-shared2."
|
log "\n\n`date` - Updates to env-shared are available via 'update-shared2'."
|
||||||
#log ": '$status'"
|
#log ": '$status'"
|
||||||
done
|
done
|
||||||
fi & )
|
fi & )
|
||||||
|
|||||||
Reference in New Issue
Block a user