#!/bin/bash

export SOURCE=$(pwd)

#echo "sure delet all file?(y or n)"
read -p "Are you sure delet allfile? (y or n):" number

if [ "$number" == "y" ]; then
rm -rf $SOURCE/tmp/*
echo "已經清除tmp底下的fs"
elif [ "$number" == "n" ]; then
echo "沒有刪除"
else
echo "請輸入 n or y"
fi

, , ,

阿倫 發表在 痞客邦 PIXNET 留言(0) 人氣()