File indexing completed on 2025-01-05 04:00:16

0001 #!/bin/bash
0002 
0003 # SPDX-FileCopyrightText: 2008-2024 by Gilles Caulier, <caulier dot gilles at gmail dot com>
0004 #
0005 # SPDX-License-Identifier: BSD-3-Clause
0006 #
0007 
0008 # Ask to run as root
0009 
0010 if [[ $EUID -ne 0 ]]; then
0011     echo "This script should be run as root using sudo command."
0012     exit 1
0013 fi
0014 
0015 # Halt and catch errors
0016 set -eE
0017 trap 'PREVIOUS_COMMAND=$THIS_COMMAND; THIS_COMMAND=$BASH_COMMAND' DEBUG
0018 trap 'echo "FAILED COMMAND: $PREVIOUS_COMMAND"' ERR
0019 
0020 ORIG_WD="`pwd`"
0021 
0022 cd $ORIG_WD/7.x/project/bundles/appimage
0023 git pull
0024 ./update.sh
0025 
0026 cd $ORIG_WD/8.x/project/bundles/appimage
0027 git pull
0028 ./update.sh
0029 
0030 cd $ORIG_WD