Skip to content

Commit 7de22c8

Browse files
author
Andreas Poulsen
committed
Merge branch 'feature/fix_desktop_toggle_writable_blocking_desktop_deletion' into 'master'
Fix desktop_toggle_writable blocking desktop deletion See merge request os2borgerpc/os2borgerpc-scripts!180
2 parents dc0492c + 88234fc commit 7de22c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ Lint python scripts:
4646
image: python:3.10-alpine
4747
before_script:
4848
- apk add --no-cache --virtual .deps gcc musl-dev
49-
- pip install black
49+
- pip install black==22.12.0
5050
script:
5151
- black --check --diff --exclude=migrations .

os2borgerpc/desktop/desktop_toggle_writable.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ make_desktop_writable
4040

4141
if [ "$ACTIVATE" = 'True' ]; then
4242
# Temporarily set it mutable before copying new files in, as otherwise that will fail
43-
sed -i "/# Restore \$HOME/a\ $SET_USER_DESKTOP_MUTABLE" $USER_CLEANUP
43+
sed -i "/USERNAME=\"user\"/a $SET_USER_DESKTOP_MUTABLE" $USER_CLEANUP
4444
cat <<- EOF >> $USER_CLEANUP
4545
$SET_USER_DESKTOP_ROOT_OWNED
4646
$SET_USER_DESKTOP_IMMUTABLE

0 commit comments

Comments
 (0)