Skip to content

Commit

Permalink
formatting: replaced lingering tabs with spaces
Browse files Browse the repository at this point in the history
Signed-Off-By: Ryan Savino <ryan.savino@amd.com>
  • Loading branch information
ryansavino committed Jul 23, 2024
1 parent ddb2db2 commit b835815
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions misc/snapshotter/snapshotter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ print_usage() {

wait_service_active(){
local wait_time="$1"
local sleep_time="$2"
local service="$3"
local sleep_time="$2"
local service="$3"

nsenter -t 1 -m systemctl restart $service

Expand All @@ -65,7 +65,7 @@ wait_service_active(){
return 0
else
sleep "$sleep_time"
wait_time=$((wait_time-sleep_time))
wait_time=$((wait_time-sleep_time))
fi
done

Expand Down Expand Up @@ -141,14 +141,14 @@ EOF
"${CONTAINER_RUNTIME_CONFIG}".bak
else
sed -i '/\[plugins\..*\.containerd\]/a\disable_snapshot_annotations = false' \
"${CONTAINER_RUNTIME_CONFIG}".bak
"${CONTAINER_RUNTIME_CONFIG}".bak
fi
if grep -q 'discard_unpacked_layers' "$CONTAINER_RUNTIME_CONFIG".bak; then
sed -i -e "s|discard_unpacked_layers = .*|discard_unpacked_layers = false|" \
"${CONTAINER_RUNTIME_CONFIG}".bak
else
sed -i '/\[plugins\..*\.containerd\]/a\discard_unpacked_layers = false' \
"${CONTAINER_RUNTIME_CONFIG}".bak
"${CONTAINER_RUNTIME_CONFIG}".bak
fi

if [ "${ENABLE_RUNTIME_SPECIFIC_SNAPSHOTTER}" == "false" ]; then
Expand Down

0 comments on commit b835815

Please sign in to comment.