Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a22d4407 authored by vincent's avatar vincent
Browse files

add wrapper for linux script

parent b03ef04b
Loading
Loading
Loading
Loading

linux/wrapper.sh

0 → 100755
+32 −0
Original line number Diff line number Diff line
#!/bin/sh
# Copyright (C) 2020 ECORP SAS - Author: Vincent Bourgmayer
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

# This a wrapper for linux flash's scripts.

STEP="$1.sh"
SCRIPT_FOLDER="./"

if [ -z $1 ]
then 
	echo "Exit: No script to execute passed in param"
	exit 1
fi

shift

echo "command to perform is: . $SCRIPT_FOLDER$STEP $@"
$SCRIPT_FOLDER$STEP "$@"
exit $?
 No newline at end of file