Commit 75b430fb authored by Mattia Rizzolo's avatar Mattia Rizzolo

actually, flock all the scripts

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 925b5e5a
...@@ -2,11 +2,8 @@ ...@@ -2,11 +2,8 @@
set -euo pipefail set -euo pipefail
# run only one verion of myself
# shellcheck disable=2015
[ "${FLOCKER:-}" != "$0" ] && exec env FLOCKER="$0" flock -E 0 -en "$0" "$0" "$@" || :
base="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )" base="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )"
. "$base"/utils/flock.sh
# Allow this script to be run only by ubuntu-it # Allow this script to be run only by ubuntu-it
if [[ "$(whoami)" != "ubuntu-it" ]]; then if [[ "$(whoami)" != "ubuntu-it" ]]; then
......
#!/bin/sh
# run only one verion of myself
# shellcheck disable=2015
echo "$0"
[ "${FLOCKER:-}" != "$0" ] && exec env FLOCKER="$0" flock -E 0 -en "$0" "$0" "$@" || :
...@@ -17,6 +17,8 @@ base="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )" ...@@ -17,6 +17,8 @@ base="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )"
# Include all the utilities from the subfiles # Include all the utilities from the subfiles
# shellcheck disable=1090 # shellcheck disable=1090
. "${base}/flock.sh" # prevent this script from running twice together
# shellcheck disable=1090
. "${base}/bzr.sh" . "${base}/bzr.sh"
# shellcheck disable=1090 # shellcheck disable=1090
. "${base}/git.sh" . "${base}/git.sh"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment