Prechádzať zdrojové kódy

Updated the library script

Samuel W. Flint 7 rokov pred
rodič
commit
45b9e25846
1 zmenil súbory, kde vykonal 17 pridanie a 17 odobranie
  1. 17 17
      library

+ 17 - 17
library

@@ -6,13 +6,13 @@ GIT=detect
 
 # help-message, /home/swflint/org/library.org
 if [[ $# -eq 0 ]] ; then
-    echo "library [ help | query | add | git | bulk-add | report | edit | loan | do-return | init ]"
+    echo "library [ help | query | add | git | bulk-add | report | edit | loan | return-book | init ]"
     exit
 fi
 
 function display-help {
     cat <<EOF
-library [ help | query | add | git | bulk-add | report | edit | loan | do-return | init ]
+library [ help | query | add | git | bulk-add | report | edit | loan | return-book | init ]
 
 help:       Display this help message.
 query:      Query Library Database.
@@ -22,7 +22,7 @@ bulk-add:   Add a specified number of records.
 report:     Run a report.
 edit:       Edit the value of a specified field in a specified record.
 loan:       Loan a book out.
-do-return:  Process a book return
+return-book:Process a book return
 init:       Initialize the database.
 EOF
 }
@@ -93,20 +93,20 @@ function run-query {
 # add-book, /home/swflint/org/library.org
 function add-single {
     if [[ $# -lt 7 ]] ; then
-        echo -n "Title: "
-        read TITLE
-        echo -n "Author: "
-        read AUTHOR
-        echo -n "LCCN: "
-        read LCCN
-        echo -n "Copyright: "
-        read COPYRIGHT
-        echo -n "Publisher: "
-        read PUBLISHER
-        echo -n "ISBN: "
-        read ISBN
-        echo -n "Location: "
-        read LOCATION
+    echo -n "Title: "
+    read TITLE
+    echo -n "Author: "
+    read AUTHOR
+    echo -n "LCCN: "
+    read LCCN
+    echo -n "Copyright: "
+    read COPYRIGHT
+    echo -n "Publisher: "
+    read PUBLISHER
+    echo -n "ISBN: "
+    read ISBN
+    echo -n "Location: "
+    read LOCATION
     else
         TITLE=$1
         shift