瀏覽代碼

Clear screen before exit message

Bob Mottram 10 年之前
父節點
當前提交
a78e66522c
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. 4
    2
      src/freedombone-sec

+ 4
- 2
src/freedombone-sec 查看文件

300
       --yesno "\nPlease confirm that you wish your security settings to be changed?\n\nWARNING: any mistakes made in the security settings could compromise your system, so be extra careful when answering 'yes'." 12 60
300
       --yesno "\nPlease confirm that you wish your security settings to be changed?\n\nWARNING: any mistakes made in the security settings could compromise your system, so be extra careful when answering 'yes'." 12 60
301
   sel=$?
301
   sel=$?
302
   case $sel in
302
   case $sel in
303
-      1) echo 'Exiting without changing security settings'
303
+      1) clear
304
+         echo 'Exiting without changing security settings'
304
          exit 0;;
305
          exit 0;;
305
-      255) echo 'Exiting without changing security settings'
306
+      255) clear
307
+           echo 'Exiting without changing security settings'
306
            exit 0;;
308
            exit 0;;
307
   esac
309
   esac
308
 
310