Skip to content

Instantly share code, notes, and snippets.

@ruibinx
ruibinx / update_submodule.sh
Created October 14, 2021 02:56
update submodule packages
FN=/tmp/emacs-update-sessions
function pull() {
FN=/tmp/emacs-update-sessions
touch $FN
PN=$(basename $(pwd))
CNT=$(grep -c $PN /tmp/emacs-update-sessions)
echo $PN $CNT
if [ $CNT -ge 1 ]; then
echo skip