added a splitter based on hostname
authorChris Koeritz <fred@gruntoes.com>
Thu, 25 Apr 2019 11:55:38 +0000 (07:55 -0400)
committerChris Koeritz <fred@gruntoes.com>
Thu, 25 Apr 2019 11:55:38 +0000 (07:55 -0400)
avoids cross contamination of pictures from orpheus's characters (spoonburg and obsidian) and clemens's characters (antimony).

scripts/customize/fred/scripts/games/save_f76_pics.sh

index 10a9d4290c6341fdb62a0e23dda982cc14fc9c05..86da135ab8f8b696f85f12f8da9f5c8ee768a7de 100644 (file)
@@ -1,5 +1,13 @@
+#!/bin/bash
 
 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
-netcp ~/linx/wind_goods/My\ Games/Fallout\ 76/Photos/8f99c06443f04f6f8270604369bb78eb/*[0-9].png /z/walrus/media/pictures/metaverse/fallout_76/spoonburg_pc/
+if [[ "$hostname" ~= clemems* ]]; then
+  character=clemens_pc
+fi
+if [[ "$hostname" ~= orpheus* ]]; then
+  character=spoonburg_pc
+fi
+
+netcp ~/linx/wind_goods/My\ Games/Fallout\ 76/Photos/8f99c06443f04f6f8270604369bb78eb/*[0-9].png /z/walrus/media/pictures/metaverse/fallout_76/${character}/