浏览代码

prompt for sc ul show added

Jiri Kuthan 22 年之前
父节点
当前提交
cc104c04ed
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      scripts/sc

+ 5 - 1
scripts/sc

@@ -324,7 +324,11 @@ usrloc() {
 			if [ $# -eq 2 ] ; then
 				fifo_cmd ul_show_contact $TABLE $2
 			elif [ $# -eq 1 ] ; then
-				fifo_cmd ul_dump
+				printf "Dumping all contacts may take long: are you sure you want to proceed? [Y|N] "
+				read answer
+				if [ "$answer" = "y" -o "$answer" = "Y" ] ; then
+					fifo_cmd ul_dump
+				fi
 			else
 				echo "wrong number of params for usrloc show"
 				usage