Skip to content

Commit

Permalink
install overlay file only if it doesn't exist (already pushed to Vict…
Browse files Browse the repository at this point in the history
…ron's venus repository)
  • Loading branch information
herrfrei committed Aug 13, 2023
1 parent 6ac4865 commit 6380fe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ fi
if [ $scriptAction == 'UNINSTALL' ] ; then
restoreActiveFile "$gpioListFile"
restoreActiveFile "$rulesFile"
restoreActiveFile "$overlayFile"
# install overlay only if it doesn't exist
[ -f "$overlayFile" ] || restoreActiveFile "$overlayFile"

# remove mods from configFile - do not use restore in case other mods were made manually
if [ -f "$configFile" ]; then
Expand Down

0 comments on commit 6380fe5

Please sign in to comment.