From a5a6c8ea89aa6af678809dff39a17158c0cac415 Mon Sep 17 00:00:00 2001 From: Ar-Ray-code Date: Thu, 25 May 2023 08:18:54 +0900 Subject: [PATCH] fix create_deb.bash --- build/config/version.txt | 2 +- build/create_deb.bash | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/build/config/version.txt b/build/config/version.txt index a2268e2..9fc80f9 100644 --- a/build/config/version.txt +++ b/build/config/version.txt @@ -1 +1 @@ -0.3.1 \ No newline at end of file +0.3.2 \ No newline at end of file diff --git a/build/create_deb.bash b/build/create_deb.bash index 7fdf6ab..38749fc 100644 --- a/build/create_deb.bash +++ b/build/create_deb.bash @@ -1,15 +1,10 @@ SCRIPT_DIR=$(cd $(dirname $0); pwd) -TARGET_DISTRO=$1 -ARCH=$2 -ROS_INSTALL_DIR=$3 -DL_ONLY=$4 +TARGET_DISTRO=${1-"iron"} +ARCH=${2-"arm64"} +ROS_INSTALL_DIR=${3-"/opt/ros"} VERSION=$(cat ${SCRIPT_DIR}/config/version.txt) -if [ -z "$TARGET_DISTRO" ]; then TARGET_DISTRO="humble"; fi -if [ -z "$ARCH" ]; then ARCH="arm64"; fi -if [ -z "$VERSION" ]; then VERSION="0.2.0"; fi -if [ -z "$ROS_INSTALL_DIR" ]; then ROS_INSTALL_DIR="/opt/ros"; fi echo "============================================" echo " Ar-Ray-code/rpi-bullseye-ros2 "