[openrtm-commit:03188] r3228 - trunk/OpenRTM-aist/build

openrtm @ openrtm.org openrtm @ openrtm.org
2018年 2月 26日 (月) 23:00:25 JST


Author: kawauchi
Date: 2018-02-26 23:00:25 +0900 (Mon, 26 Feb 2018)
New Revision: 3228

Modified:
   trunk/OpenRTM-aist/build/pkg_install_ubuntu.sh
Log:
[installer] Option error message has been improved.

Modified: trunk/OpenRTM-aist/build/pkg_install_ubuntu.sh
===================================================================
--- trunk/OpenRTM-aist/build/pkg_install_ubuntu.sh	2018-02-26 04:10:59 UTC (rev 3227)
+++ trunk/OpenRTM-aist/build/pkg_install_ubuntu.sh	2018-02-26 14:00:25 UTC (rev 3228)
@@ -169,6 +169,18 @@
     usage
     exit
   fi
+  # 引数1個の場合
+  if [ $arg_num -eq 1 ] ; then
+    # オプション指定が -r/-s/-c のみの場合
+    if test "x$1" = "x-r" ||
+       test "x$1" = "x-s" ||
+       test "x$1" = "x-c" || 
+       test "x$1" = "x--yes" ; then 
+      echo "[ERROR] Invalid option '$1'. '-l' option is required."
+      usage
+      exit
+    fi
+  fi
   eval set -- $OPT
 
   while true



More information about the openrtm-commit mailing list