Skip to content

Instantly share code, notes, and snippets.

@syneart
Created May 17, 2016 13:12
Show Gist options
  • Save syneart/f088ed7eb8802d725f01784622c99ccf to your computer and use it in GitHub Desktop.
Save syneart/f088ed7eb8802d725f01784622c99ccf to your computer and use it in GitHub Desktop.
修正 Google Chrome 在 Ubuntu Unity (user interface) 所產生的捷徑錯誤
#!/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