Skip to content

Commit

Permalink
feat: fix delete file only if found
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed Mar 29, 2024
1 parent 72ad17f commit a7d98b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions availup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ if [ "$NETWORK" = "goldberg" ]; then
if [ -z "$config" ]; then
CONFIG="$HOME/.avail/config/config.yml"
if [ -f "$CONFIG" ]; then
echo "📄 Configuration file found at $CONFIG."
echo "🗑️ Wiping old config file at $CONFIG."
rm $CONFIG
else
echo "🤷 No configuration file set. This will be automatically generated at startup."
fi
rm $CONFIG
touch $CONFIG
echo -e $CONFIG_PARAMS >> $CONFIG
else
Expand Down

0 comments on commit a7d98b0

Please sign in to comment.