Created
May 17, 2016 13:12
-
-
Save syneart/f088ed7eb8802d725f01784622c99ccf to your computer and use it in GitHub Desktop.
修正 Google Chrome 在 Ubuntu Unity (user interface) 所產生的捷徑錯誤
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
echo "Info: 修改檔案需要權限, 請先輸入密碼 .." | |
sudo -v | |
if [ $? -eq 1 ]; then | |
clear | |
echo "Error: 未輸入正確密碼, 無法繼續執行" | |
sleep 3 | |
exit 0 | |
fi | |
clear | |
sudo sed -i 's/-stable//g' '/usr/share/applications/google-chrome.desktop' | |
clear | |
echo "Info: 完成!!" | |
sleep 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment