OSDN Git Service

[update] : Added bash debug
authorhayao <shun819.mail@gmail.com>
Fri, 20 Nov 2020 09:56:30 +0000 (18:56 +0900)
committerhayao <shun819.mail@gmail.com>
Fri, 20 Nov 2020 09:56:30 +0000 (18:56 +0900)
lfbs

diff --git a/lfbs b/lfbs
index 70ac68f..d55b46a 100755 (executable)
--- a/lfbs
+++ b/lfbs
@@ -203,7 +203,8 @@ _usage () {
     echo "    -w | --work <work_dir> Set the working directory"
     echo "                           Default: ${work_dir}"
     echo
-    echo "    -d | --debug           "
+    echo "    -d | --debug           Enable debug messages"
+    echo "    -x | --bash-debug      Enable bash debug mode(set -xv)"
     echo "    -h | --help            This help message and exit"
     echo
     echo "You can switch between installed packages, files included in images, etc. by channel."
@@ -563,6 +564,10 @@ while :; do
             cache_only=true
             shift 1
             ;;
+        -x | --bash-debug)
+            set -xv
+            shift 1
+            ;;
         --)
             shift
             break