Browse Source

drone: if-less syntax with ||

Herby Vojčík 4 years ago
parent
commit
f54728b6ba
1 changed files with 2 additions and 2 deletions
  1. 2 2
      .drone.yml

+ 2 - 2
.drone.yml

@@ -22,8 +22,8 @@ steps:
       - chmod a+rx $DIR
       - ln -s $DIR/_site $DIR.link
       - mv -T $DIR.link static
-      - for G in dir.*; do
-      - if [ ! "$G" -ef "$DIR" ]; then rm -rf "$G"; fi
+      - for OTHER in dir.*; do
+      - test "$OTHER" -ef "$DIR" || rm -rf "$OTHER"
       - done
     volumes:
       - name: hosting