2 Commits

Author SHA1 Message Date
  max.mehl 1ad4c88d75
make more POSIX compliant 2 months ago
  max.mehl b304f604e0
try CI with latest stable image (currently 0.3.4) 2 months ago
4 changed files with 6 additions and 6 deletions
  1. 1
    1
      .drone.yml
  2. 1
    1
      .gitlab-ci.yml
  3. 2
    2
      .travis.yml
  4. 2
    2
      uberspace-backup.sh

+ 1
- 1
.drone.yml View File

@@ -3,6 +3,6 @@
3 3
 
4 4
 pipeline:
5 5
   reuse:
6
-    image: fsfe/reuse:0.4.0a1
6
+    image: fsfe/reuse:latest
7 7
     commands:
8 8
       - reuse lint

+ 1
- 1
.gitlab-ci.yml View File

@@ -2,6 +2,6 @@
2 2
 # SPDX-License-Identifier: CC0-1.0
3 3
 
4 4
 reuse:
5
-  image: fsfe/reuse:0.4.0a1
5
+  image: fsfe/reuse:latest
6 6
   script:
7 7
     - reuse lint

+ 2
- 2
.travis.yml View File

@@ -7,5 +7,5 @@ services:
7 7
   - docker
8 8
 
9 9
 before_install:
10
-- docker pull fsfe/reuse:0.4.0a1
11
-- docker run --name reuse -v ${TRAVIS_BUILD_DIR}:/repo fsfe/reuse:0.4.0a1 /bin/sh -c "cd /repo; reuse lint"
10
+- docker pull fsfe/reuse:latest
11
+- docker run --name reuse -v ${TRAVIS_BUILD_DIR}:/repo fsfe/reuse /bin/sh -c "cd /repo; reuse lint"

+ 2
- 2
uberspace-backup.sh View File

@@ -100,9 +100,9 @@ while read line; do
100 100
     rm ${DEST}.tar
101 101
     
102 102
     # Delete all old directories except the $MAXBAK most recent
103
-    if [ $(ls -tp "${BACKUPDIR}"/"${RHOST}"/ | grep '/$' | wc -l) -gt $MAXBAK ]; then
103
+    if [ $(ls -tp "${BACKUPDIR}"/"${RHOST}"/ | grep '/$' | wc -l | tr -d ' ') -gt $MAXBAK ]; then
104 104
       logecho "${RHOST}: Removing older backups of $(basename ${DEST})"
105
-      ls -tpd "${BACKUPDIR}"/"${RHOST}"/* | grep '/$' | tail -n +$[$MAXBAK + 1] | xargs -d '\n' rm -r --
105
+      ls -tpd "${BACKUPDIR}"/"${RHOST}"/* | grep '/$' | tail -n +$[$MAXBAK + 1] | xargs -0 | xargs rm -r --
106 106
     fi
107 107
   done
108 108
 

Loading…
Cancel
Save