소스 검색

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