Verified Commit 50d0d2c3 authored by Alexander Wellbrock's avatar Alexander Wellbrock
Browse files

ci-prepare: fix if clauses

parent 666d1e53
Pipeline #8352 waiting for manual action with stages
in 71 minutes and 14 seconds
......@@ -80,7 +80,7 @@ mount_sshfs() {
}
# Mount file system of repository to /remote-storage
if [ -d /remote-storage ]; then
if [ ! -d /remote-storage ]; then
mkdir /remote-storage
fi
......@@ -100,7 +100,7 @@ case $1 in
esac
# The remote is expected to have a /repo directory
if [ -d /remote-storage/repo ]; then
if [ ! -d /remote-storage/repo ]; then
echo "No repository found. Creating empty repo..."
mkdir -p /remote-storage/repo
ostree --repo=/remote-storage/repo init --mode=archive
......
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