Railsbin – The vulnerable pastebin service!

User:

Title: new phpgdo update script

Content:

GNU nano 5.4                                                            update_fix.sh
#!/bin/bash
#
# This script updates phpgdo and all modules.
# Fresh and clean gizmore bash skills :S
#
# @author gizmore
# @version 7.0.2
# @since 6.0.1
#
#
find ./GDO/ -maxdepth 2 -iname .git -exec \
echo {} \;
#
#
git checkout main
git reset --hard
git pull
#
# Fix core submodules (none, except my own code)
# Same will run for all ext modules
git submodule foreach git checkout main || \
 git submodule foreach git checkout master 2>&1
git submodule foreach git reset --hard
git submodule foreach git pull
#
# Other modules
#

Edit | Back