0

I've made a custom script where I'm trying to move the .ipa file created from the build to my desktop.

Now when I run an integration I get no result from my script . The vars.txt file isn't created on my filesystem and don't know how to verify that the script was actually executed .

Below is my simple script .

#!/bin/bash
echo "excuting the the file $0"

echo "SOURCE DIR = $XCS_SOURCE_DIR"
echo "OUTPUT DIR = $XCS_OUTPUT_DIR"
echo "PRODUCT DIR = $XCS_PRODUCT"

DESTINATION_PATH=~/Desktop

echo "SOURCE DIR = $XCS_SOURCE_DIR" > $DESTINATION_PATH/vars.txt
echo "OUTPUT DIR = $XCS_OUTPUT_DIR" >> $DESTINATION_PATH/vars.txt
echo "PRODUCT DIR = $XCS_PRODUCT" >> $DESTINATION_PATH/vars.txt
set >> $DESTINATION_PATH/vars.txt

echo "Starting to move file from $XCS_SOURCE_DIR to $DESTINATION_PATH"
cp $XCS_SOURCE_DIR $DESTINATION_PATH

FILENAME=(basename $XCS_SOURCE_DIR)
echo "Finished Copying file:$FILE_NAME to $DESTINATION_PATH"

echo "Moving into $DESTINATION_PATH"
cd $DESTINATION_PATH
stringRay2014
  • 636
  • 1
  • 11
  • 29

0 Answers0