🐛 use bash for scripts with bashisms
This commit is contained in:
parent
132efe16e1
commit
bcc228088e
3 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
# Prune old apt-dater history
|
# Prune old apt-dater history
|
||||||
MTIME=+365
|
MTIME=+365
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Check that all of the given directories are empty
|
# Check that all of the given directories are empty
|
||||||
|
|
||||||
for d in "$@"; do
|
for d in "$@"; do
|
||||||
if [[ -n "$(ls -1 "$d")" ]]; then
|
if [ -n "$(ls -1 "$d")" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
2
randint
2
randint
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
# Give a random integer between 1 and $1 inclusive
|
# Give a random integer between 1 and $1 inclusive
|
||||||
|
|
||||||
min=1
|
min=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue