We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 539c0f4 commit 4252271Copy full SHA for 4252271
plugins/ciel-switchmirror
@@ -5,8 +5,7 @@ export CIEL_INST="ciel--switchmirror--"
5
6
ciel add "$CIEL_INST"
7
if [ "$1" != "" ]; then
8
-ciel shell oma mirror add "$1"
9
- if [ "$?" != "0" ]; then
+ if ! ciel shell oma mirror add "$1"; then
10
echo -e "\e[1m\e[91m[switch-mirror]:\e[0m\e[1m Failed to set mirror '$1'.\e[0m"
11
echo -e "\e[1m\e[91m[switch-mirror]:\e[0m\e[1m More information please refer to the error oma had reported.\e[0m"
12
exit 1
0 commit comments