-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update postinst script to recommend installing python-tgpt[cli]
fix: Simplify postrm script by removing unnecessary file deletion logic patch: Add suggestion to run pytgpt from source in postrm script
- Loading branch information
Showing
5 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
#!/bin/bash | ||
|
||
FILE_LIST=/usr/lib/pytgpt/entries.txt | ||
|
||
if [ -f "$FILE_LIST" ]; then | ||
while read -r ENTRY; do | ||
if [ -d "$ENTRY" ]; then | ||
rm -rf "$ENTRY" | ||
elif [ -f "$ENTRY" ]; then | ||
rm -f "$ENTRY" | ||
else | ||
echo "" | ||
fi | ||
done < "$FILE_LIST" | ||
else | ||
echo "The file list $FILE_LIST does not exist. Nothing to do." | ||
fi | ||
|
||
rm /usr/bin/pytgpt | ||
|
||
echo "You might want to run pytgpt from source - <pip install python-tgpt[cli]> | ||
echo "Submit any bug at <https://github.com/Simatwa/python-tgpt/issues/new>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
FILE_LIST=/usr/lib/pytgpt/entries.txt | ||
|
||
if [ -f "$FILE_LIST" ]; then | ||
while read -r ENTRY; do | ||
if [ -d "$ENTRY" ]; then | ||
rm -rf "$ENTRY" | ||
elif [ -f "$ENTRY" ]; then | ||
rm -f "$ENTRY" | ||
else | ||
echo "" | ||
fi | ||
done < "$FILE_LIST" | ||
else | ||
echo "The file list $FILE_LIST does not exist. Nothing to do." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters