Skip to content

Commit 06a6b73

Browse files
authored
fix #94: restore permissions after self update (#97)
1 parent c0abc4a commit 06a6b73

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ubuntu-mainline-kernel.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ Optional:
597597
err "Update failed, downloaded file is empty"
598598
exit 1
599599
else
600+
chmod --reference="$self" "$self.tmp"
600601
mv "$self.tmp" "$self"
601602
echo "Script updated"
602603
fi

0 commit comments

Comments
 (0)