Skip to content

Commit a7d98b0

Browse files
committed
feat: fix delete file only if found
1 parent 72ad17f commit a7d98b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

availup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ if [ "$NETWORK" = "goldberg" ]; then
7070
if [ -z "$config" ]; then
7171
CONFIG="$HOME/.avail/config/config.yml"
7272
if [ -f "$CONFIG" ]; then
73-
echo "📄 Configuration file found at $CONFIG."
73+
echo "🗑️ Wiping old config file at $CONFIG."
74+
rm $CONFIG
7475
else
7576
echo "🤷 No configuration file set. This will be automatically generated at startup."
7677
fi
77-
rm $CONFIG
7878
touch $CONFIG
7979
echo -e $CONFIG_PARAMS >> $CONFIG
8080
else

0 commit comments

Comments
 (0)